2017-12-25 11:23:10 -08:00
|
|
|
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
2017-05-31 13:57:42 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
buildPythonPackage {
|
2017-05-31 13:57:42 -07:00
|
|
|
pname = "semver";
|
2019-03-06 02:39:17 -08:00
|
|
|
version = "2.8.1";
|
2017-05-31 13:57:42 -07:00
|
|
|
|
2017-12-25 11:23:10 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "k-bx";
|
|
|
|
repo = "python-semver";
|
2019-03-06 02:39:17 -08:00
|
|
|
rev = "41775dd5f143dfa6ca94885056c9ef5b3ed4e6e1"; # not tagged in repository
|
|
|
|
sha256 = "1rqaakha4sw06k9h0h4g1wmk66zkmhpq92y2rw0kyfpp6xk1zbk2";
|
2017-05-31 13:57:42 -07:00
|
|
|
};
|
|
|
|
|
2017-12-25 11:23:10 -08:00
|
|
|
checkInputs = [ pytest ];
|
2019-03-06 02:39:17 -08:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-08-25 01:57:54 -07:00
|
|
|
|
2017-05-31 13:57:42 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python package to work with Semantic Versioning (http://semver.org/)";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/k-bx/python-semver";
|
2017-05-31 13:57:42 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|