1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 natsort,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "seedir";
12 version = "0.4.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "earnestt1234";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-ioez5lBNyiBK3poL2Px3KtCQeM+Gh2d4iD3SoAIHFAk=";
22 };
23
24 propagatedBuildInputs = [ natsort ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "seedir" ];
29
30 pytestFlagsArray = [ "tests/tests.py" ];
31
32 meta = with lib; {
33 description = "Module for for creating, editing, and reading folder tree diagrams";
34 mainProgram = "seedir";
35 homepage = "https://github.com/earnestt1234/seedir";
36 changelog = "https://github.com/earnestt1234/seedir/releases/tag/v${version}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}