35 lines
675 B
Nix
35 lines
675 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "phonenumbers";
|
|
version = "8.12.47";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Vv1gXS9UYOHfIRcIW2U7s4MiKV7GWOasqvycl2hn1SI=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/*.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"phonenumbers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for handling international phone numbers";
|
|
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fadenb ];
|
|
};
|
|
}
|