2017-12-25 19:23:10 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
2017-05-31 21:57:42 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "semver";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "2.7.9";
|
2017-05-31 21:57:42 +01:00
|
|
|
|
2017-12-25 19:23:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "k-bx";
|
|
|
|
repo = "python-semver";
|
|
|
|
rev = "2001c62d1a0361c44acc7076d8ce91e1d1c66141"; # not tagged in repository
|
|
|
|
sha256 = "01c05sv97dyr672sa0nr3fnh2aqbmvkfw19d6rkaj16h2sdsyg0i";
|
2017-05-31 21:57:42 +01:00
|
|
|
};
|
|
|
|
|
2017-12-25 19:23:10 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = "pytest -v tests.py";
|
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/)";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/k-bx/python-semver;
|
2017-05-31 21:57:42 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|