2020-07-02 03:51:41 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
|
|
|
}:
|
2017-05-31 21:57:42 +01:00
|
|
|
|
2020-07-02 03:51:41 +01:00
|
|
|
buildPythonPackage rec {
|
2017-05-31 21:57:42 +01:00
|
|
|
pname = "semver";
|
2020-07-02 03:51:41 +01:00
|
|
|
version = "2.10.2";
|
2017-05-31 21:57:42 +01:00
|
|
|
|
2017-12-25 19:23:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-07-02 03:51:41 +01:00
|
|
|
owner = "python-semver";
|
2017-12-25 19:23:10 +00:00
|
|
|
repo = "python-semver";
|
2020-07-02 03:51:41 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
|
2017-05-31 21:57:42 +01:00
|
|
|
};
|
|
|
|
|
2020-07-02 03:51:41 +01:00
|
|
|
preCheck = "rm -rf dist"; # confuses source vs dist imports in pytest
|
|
|
|
checkInputs = [ pytestCheckHook pytestcov ];
|
2017-08-25 09:57:54 +01:00
|
|
|
|
2017-05-31 21:57:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python package to work with Semantic Versioning (http://semver.org/)";
|
2020-07-02 03:51:41 +01:00
|
|
|
homepage = "https://python-semver.readthedocs.io/en/latest/";
|
2017-05-31 21:57:42 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|