1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 runs,
7 xmod,
8 pytestCheckHook,
9 tdir,
10}:
11
12buildPythonPackage rec {
13 pname = "editor";
14 version = "1.6.6";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "rec";
19 repo = "editor";
20 rev = "v${version}";
21 hash = "sha256-FVtat3gUsK5Lv6XSkVXj0hY6NkMGw6LxRWMJrZ/cIis=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 propagatedBuildInputs = [
27 runs
28 xmod
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 tdir
34 ];
35
36 pythonImportsCheck = [ "editor" ];
37
38 meta = with lib; {
39 description = "Open the default text editor";
40 homepage = "https://github.com/rec/editor";
41 changelog = "https://github.com/rec/editor/blob/${src.rev}/CHANGELOG";
42 license = licenses.mit;
43 maintainers = [ ];
44 };
45}