summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-yakh/default.nix
blob: a3fba540022b533bd2bc1558ba8cd1c02255991b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  poetry-core,

  # nativeCheckInputs
  pytestCheckHook,
}:

buildPythonPackage rec {
  # NOTE that this is not https://pypi.org/project/yakh/
  pname = "python-yakh";
  version = "0.4.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "petereon";
    repo = "yakh";
    rev = "v${version}";
    hash = "sha256-mXG0fit+0MLOkn2ezRzLboDGKxkES/T7kyWAfaF0EQQ=";
  };

  build-system = [
    poetry-core
  ];

  pythonImportsCheck = [
    "yakh"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Yet Another Keypress Handler";
    homepage = "https://pypi.org/project/python-yakh";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}