1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "phonenumbers"; 11 version = "8.13.34"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-fCZ2vge30PdEEeJ14GYDgKDsPuDTWfBw1xlCS9LF9i4="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 pytestFlagsArray = [ "tests/*.py" ]; 24 25 pythonImportsCheck = [ "phonenumbers" ]; 26 27 meta = with lib; { 28 description = "Python module for handling international phone numbers"; 29 homepage = "https://github.com/daviddrysdale/python-phonenumbers"; 30 changelog = "https://github.com/daviddrysdale/python-phonenumbers/blob/v${version}/python/HISTORY.md"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ fadenb ]; 33 }; 34}