blob: 5aca34b52f11e26a83b2cae9f60f930ed5b40efe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ stdenv
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytestcov
}:
buildPythonPackage rec {
pname = "semver";
version = "2.10.2";
src = fetchFromGitHub {
owner = "python-semver";
repo = "python-semver";
rev = version;
sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
};
preCheck = "rm -rf dist"; # confuses source vs dist imports in pytest
checkInputs = [ pytestCheckHook pytestcov ];
meta = with stdenv.lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)";
homepage = "https://python-semver.readthedocs.io/en/latest/";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};
}
|