Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / editor / default.nix
blob3cbc44cc5dff63cba71c6b45292c1efa3cf3fe02
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , runs
6 , xmod
7 , pytestCheckHook
8 , tdir
9 }:
11 buildPythonPackage rec {
12   pname = "editor";
13   version = "1.6.6";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "rec";
18     repo = "editor";
19     rev = "v${version}";
20     hash = "sha256-FVtat3gUsK5Lv6XSkVXj0hY6NkMGw6LxRWMJrZ/cIis=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   propagatedBuildInputs = [
28     runs
29     xmod
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     tdir
35   ];
37   pythonImportsCheck = [
38     "editor"
39   ];
41   meta = with lib; {
42     description = "Open the default text editor";
43     homepage = "https://github.com/rec/editor";
44     changelog = "https://github.com/rec/editor/blob/${src.rev}/CHANGELOG";
45     license = licenses.mit;
46     maintainers = with maintainers; [ ];
47   };