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