diff --git a/pkgs/development/python-modules/looseversion/default.nix b/pkgs/development/python-modules/looseversion/default.nix new file mode 100644 index 000000000000..5a71caf8c666 --- /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 34f90f83cc81..5d124af9813b 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 { };