3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/semantic-version/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
700 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, pytestCheckHook
}:
2017-09-29 14:03:44 +01:00
buildPythonPackage rec {
pname = "semantic-version";
version = "2.9.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-09-29 14:03:44 +01:00
src = fetchPypi {
pname = "semantic_version";
inherit version;
sha256 = "sha256-q/VIc1U+Xgem/U1fZTt4H1rkEpekk2ZrWdzyFABqErI=";
2017-09-29 14:03:44 +01:00
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"semantic_version"
];
2017-09-29 14:03:44 +01:00
meta = with lib; {
description = "A library implementing the 'SemVer' scheme";
homepage = "https://github.com/rbarrois/python-semanticversion/";
license = licenses.bsd2;
2017-09-29 14:03:44 +01:00
maintainers = with maintainers; [ layus makefu ];
};
}