python3Packages.newversion: init at 1.8.2
This commit is contained in:
parent
54105e1f85
commit
8c023415b9
49
pkgs/development/python-modules/newversion/default.nix
Normal file
49
pkgs/development/python-modules/newversion/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, packaging
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "newversion";
|
||||
version = "1.8.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vemel";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-27HWMzSzyAbiOW7OUhlupRWIVJG6DrpXObXmxlCsmxU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"newversion"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PEP 440 version manager";
|
||||
homepage = "https://github.com/vemel/newversion";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5416,6 +5416,8 @@ in {
|
||||
|
||||
nevow = callPackage ../development/python-modules/nevow { };
|
||||
|
||||
newversion = callPackage ../development/python-modules/newversion { };
|
||||
|
||||
nexia = callPackage ../development/python-modules/nexia { };
|
||||
|
||||
nextcloudmonitor = callPackage ../development/python-modules/nextcloudmonitor { };
|
||||
|
Loading…
Reference in New Issue
Block a user