1{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
2
3buildPythonPackage rec {
4 name = "${pname}-${version}";
5 pname = "semver";
6 version = "2.7.9";
7
8 src = fetchFromGitHub {
9 owner = "k-bx";
10 repo = "python-semver";
11 rev = "2001c62d1a0361c44acc7076d8ce91e1d1c66141"; # not tagged in repository
12 sha256 = "01c05sv97dyr672sa0nr3fnh2aqbmvkfw19d6rkaj16h2sdsyg0i";
13 };
14
15 checkInputs = [ pytest ];
16 checkPhase = "pytest -v tests.py";
17
18 meta = with stdenv.lib; {
19 description = "Python package to work with Semantic Versioning (http://semver.org/)";
20 homepage = https://github.com/k-bx/python-semver;
21 license = licenses.bsd3;
22 maintainers = with maintainers; [ np ];
23 };
24}