2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-07-02 02:51:41 +00:00
|
|
|
, buildPythonPackage
|
2021-03-22 16:16:29 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-cov
|
2020-07-02 02:51:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-05-31 20:57:42 +00:00
|
|
|
|
2020-07-02 02:51:41 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-31 20:57:42 +00:00
|
|
|
pname = "semver";
|
2021-03-22 16:16:29 +00:00
|
|
|
version = "2.13.0";
|
2017-05-31 20:57:42 +00:00
|
|
|
|
2017-12-25 19:23:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-07-02 02:51:41 +00:00
|
|
|
owner = "python-semver";
|
2017-12-25 19:23:10 +00:00
|
|
|
repo = "python-semver";
|
2020-07-02 02:51:41 +00:00
|
|
|
rev = version;
|
2021-03-22 16:16:29 +00:00
|
|
|
sha256 = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
|
2017-05-31 20:57:42 +00:00
|
|
|
};
|
|
|
|
|
2021-03-22 16:16:29 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Confuses source vs dist imports in pytest
|
|
|
|
preCheck = "rm -r dist";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "semver" ];
|
2017-08-25 08:57:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-31 20:57:42 +00:00
|
|
|
description = "Python package to work with Semantic Versioning (http://semver.org/)";
|
2021-03-22 16:16:29 +00:00
|
|
|
homepage = "https://python-semver.readthedocs.io/";
|
2017-05-31 20:57:42 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|