about summary refs log tree commit diff
path: root/pkgs/development/python-modules/editor/default.nix
blob: 3cbc44cc5dff63cba71c6b45292c1efa3cf3fe02 (plain) (blame)
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
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, runs
, xmod
, pytestCheckHook
, tdir
}:

buildPythonPackage rec {
  pname = "editor";
  version = "1.6.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rec";
    repo = "editor";
    rev = "v${version}";
    hash = "sha256-FVtat3gUsK5Lv6XSkVXj0hY6NkMGw6LxRWMJrZ/cIis=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    runs
    xmod
  ];

  nativeCheckInputs = [
    pytestCheckHook
    tdir
  ];

  pythonImportsCheck = [
    "editor"
  ];

  meta = with lib; {
    description = "Open the default text editor";
    homepage = "https://github.com/rec/editor";
    changelog = "https://github.com/rec/editor/blob/${src.rev}/CHANGELOG";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}