diff options
author | Andreas Pelme <andreas@pelme.se> | 2023-02-05 20:36:10 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-04-24 18:55:52 +0200 |
commit | 7509871fea118c38e7342551254015f42868b544 (patch) | |
tree | 8782b53fb70e86c83b5f5c7db1e3682aa575e83f /pkgs | |
parent | f515d4ad45432e58d2ab3708e64d47381eb664b1 (diff) |
looseversion: init at 1.0.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/looseversion/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/looseversion/default.nix b/pkgs/development/python-modules/looseversion/default.nix new file mode 100644 index 0000000000000..5a71caf8c666c --- /dev/null +++ b/pkgs/development/python-modules/looseversion/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "looseversion"; + version = "1.0.3"; + format = "flit"; + + src = fetchPypi { + inherit version pname; + sha256 = "sha256-A1KIhg4a/mfWPqnHAN2dCVxyTi5XIqOQKd2RZS1DFu0"; + }; + + nativeCheckInputs = [ + pytestCheckHook + ]; + pytestFlagsArray = [ "tests.py" ]; + pythonImportsCheck = [ "looseversion" ]; + + meta = with lib; { + description = "Version numbering for anarchists and software realists"; + homepage = "https://github.com/effigies/looseversion"; + license = licenses.psfl; + maintainers = with maintainers; [ pelme ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 34f90f83cc81b..5d124af9813b2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5742,6 +5742,8 @@ self: super: with self; { loopy = callPackage ../development/python-modules/loopy { }; + looseversion = callPackage ../development/python-modules/looseversion { }; + losant-rest = callPackage ../development/python-modules/losant-rest { }; lrcalc-python = callPackage ../development/python-modules/lrcalc-python { }; |