1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-cov 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "semver"; 10 version = "2.13.0"; 11 12 src = fetchFromGitHub { 13 owner = "python-semver"; 14 repo = "python-semver"; 15 rev = version; 16 sha256 = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w="; 17 }; 18 19 checkInputs = [ 20 pytest-cov 21 pytestCheckHook 22 ]; 23 24 # Confuses source vs dist imports in pytest 25 preCheck = "rm -r dist"; 26 27 pythonImportsCheck = [ "semver" ]; 28 29 meta = with lib; { 30 description = "Python package to work with Semantic Versioning (http://semver.org/)"; 31 homepage = "https://python-semver.readthedocs.io/"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ np ]; 34 }; 35}