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