2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "semantic-version";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.10.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "semantic_version";
|
|
|
|
inherit version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"semantic_version"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library implementing the 'SemVer' scheme";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/rbarrois/python-semanticversion/";
|
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ layus makefu ];
|
|
|
|
};
|
|
|
|
}
|