11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
19 owner = "python-semver";
20 repo = "python-semver";
21 rev = "refs/tags/${version}";
22 hash = "sha256-772PSUq1dqtn9aOol+Bo0S0OItBmoiCNP8q/YCBvKU4=";
26 sed -i "/--cov/d" setup.cfg
27 sed -i "/--no-cov-on-fail/d" setup.cfg
35 nativeCheckInputs = [ pytestCheckHook ];
38 # Don't test the documentation
42 pythonImportsCheck = [ "semver" ];
45 description = "Python package to work with Semantic Versioning (http://semver.org/)";
46 homepage = "https://python-semver.readthedocs.io/";
47 changelog = "https://github.com/python-semver/python-semver/releases/tag/3.0.0";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ np ];
50 mainProgram = "pysemver";