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