about summary refs log tree commit diff
path: root/pkgs/development/python-modules/trailrunner/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/trailrunner/default.nix')
-rw-r--r--pkgs/development/python-modules/trailrunner/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/trailrunner/default.nix b/pkgs/development/python-modules/trailrunner/default.nix
new file mode 100644
index 0000000000000..04cf6b0c071fa
--- /dev/null
+++ b/pkgs/development/python-modules/trailrunner/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, flit-core
+, pathspec
+, pythonOlder
+, unittestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "trailrunner";
+  version = "1.4.0";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "omnilib";
+    repo = "trailrunner";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-qtEBr22yyj6WcSfyYr/4r0IuuMJ6chFFqnmb+uMfQPA=";
+  };
+
+  nativeBuildInputs = [
+    flit-core
+  ];
+
+  propagatedBuildInputs = [
+    pathspec
+  ];
+
+  nativeCheckInputs = [
+    unittestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "trailrunner"
+  ];
+
+  meta = with lib; {
+    description = "Module to walk paths and run things";
+    homepage = "https://github.com/omnilib/trailrunner";
+    changelog = "https://github.com/omnilib/trailrunner/blob/${version}/CHANGELOG.md";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}