587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
39 lines
833 B
Nix
39 lines
833 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "phonenumbers";
|
|
version = "8.13.31";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-J0IHHJ0K8JJ0yKWyom2aNqy/LqXLYpQ8ws6ttcDIdkE=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/*.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"phonenumbers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for handling international phone numbers";
|
|
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
|
changelog = "https://github.com/daviddrysdale/python-phonenumbers/blob/v${version}/python/HISTORY.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fadenb ];
|
|
};
|
|
}
|