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