diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-10 11:01:22 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-12 22:29:21 +0100 |
commit | 717020f3f6f23312f79d9c221039430c86d0c93f (patch) | |
tree | 2e6660d6ebb6544ca4155139cb4a03f1f39205e9 /pkgs/development/python-modules/awesomeversion | |
parent | 213286bb181c9b6588bb5c4fa130301cefc90dd0 (diff) |
python3Packages.awesomeversion: init at 20.12.5
Diffstat (limited to 'pkgs/development/python-modules/awesomeversion')
-rw-r--r-- | pkgs/development/python-modules/awesomeversion/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/awesomeversion/default.nix b/pkgs/development/python-modules/awesomeversion/default.nix new file mode 100644 index 0000000000000..a49e55abe1075 --- /dev/null +++ b/pkgs/development/python-modules/awesomeversion/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "awesomeversion"; + version = "20.12.5"; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "ludeeus"; + repo = pname; + rev = version; + sha256 = "1jwlfqnrqlxjp30fj9bcqh7vgicmpdbn5kjdcmll4srnl87lalfg"; + }; + + postPatch = '' + substituteInPlace setup.py --replace "main" ${version} + ''; + + propagatedBuildInputs = [ requests ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "awesomeversion" ]; + + meta = with lib; { + description = "Python module to deal with versions"; + homepage = "https://github.com/ludeeus/awesomeversion"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |