diff --git a/pkgs/development/python-modules/trailrunner/default.nix b/pkgs/development/python-modules/trailrunner/default.nix new file mode 100644 index 000000000000..04cf6b0c071f --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8c203d79007f..398f2e7f24b3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12436,6 +12436,8 @@ self: super: with self; { trackpy = callPackage ../development/python-modules/trackpy { }; + trailrunner = callPackage ../development/python-modules/trailrunner {}; + trainer = callPackage ../development/python-modules/trainer {}; traitlets = callPackage ../development/python-modules/traitlets { };