2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-07-18 16:06:22 +00:00
|
|
|
, buildPythonPackage
|
2021-03-20 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-cov
|
2020-07-18 16:06:22 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "semver";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "2.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "python-semver";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "python-semver";
|
2020-07-18 16:06:22 +00:00
|
|
|
rev = version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Confuses source vs dist imports in pytest
|
|
|
|
preCheck = "rm -r dist";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "semver" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python package to work with Semantic Versioning (http://semver.org/)";
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://python-semver.readthedocs.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|