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