diff options
Diffstat (limited to 'pkgs/development/python-modules/ssort/default.nix')
-rw-r--r-- | pkgs/development/python-modules/ssort/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ssort/default.nix b/pkgs/development/python-modules/ssort/default.nix new file mode 100644 index 0000000000000..71a950b98bd70 --- /dev/null +++ b/pkgs/development/python-modules/ssort/default.nix @@ -0,0 +1,45 @@ +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + pathspec, + pytestCheckHook, + pyyaml, +}: + +buildPythonPackage rec { + pname = "ssort"; + version = "0.13.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bwhmather"; + repo = "ssort"; + rev = "refs/tags/${version}"; + hash = "sha256-P/FUayCC7KfXjtzclTPLhLw5o0bV4L98tes69w+038o="; + }; + + build-system = [ setuptools ]; + + dependencies = [ pathspec ]; + + pythonImportsCheck = [ "ssort" ]; + + nativeCheckInputs = [ + pytestCheckHook + pyyaml + ]; + + preCheck = '' + export PATH=$out/bin:$PATH + ''; + + meta = { + description = "Automatically sorting python statements within a module"; + homepage = "https://github.com/bwhmather/ssort"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ tochiaha ]; + mainProgram = "ssort"; + }; +} |