1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 pythonOlder, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "semantic-version"; 11 version = "2.10.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 pname = "semantic_version"; 18 inherit version; 19 hash = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw="; 20 }; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 pythonImportsCheck = [ "semantic_version" ]; 25 26 meta = with lib; { 27 description = "Library implementing the 'SemVer' scheme"; 28 homepage = "https://github.com/rbarrois/python-semanticversion/"; 29 license = licenses.bsd2; 30 maintainers = with maintainers; [ 31 layus 32 makefu 33 ]; 34 }; 35}