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