1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pathspec,
7 pythonOlder,
8 unittestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "trailrunner";
13 version = "1.4.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "omnilib";
20 repo = "trailrunner";
21 tag = "v${version}";
22 hash = "sha256-qtEBr22yyj6WcSfyYr/4r0IuuMJ6chFFqnmb+uMfQPA=";
23 };
24
25 nativeBuildInputs = [ flit-core ];
26
27 propagatedBuildInputs = [ pathspec ];
28
29 nativeCheckInputs = [ unittestCheckHook ];
30
31 pythonImportsCheck = [ "trailrunner" ];
32
33 meta = with lib; {
34 description = "Module to walk paths and run things";
35 homepage = "https://github.com/omnilib/trailrunner";
36 changelog = "https://github.com/omnilib/trailrunner/blob/${version}/CHANGELOG.md";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}