2021-07-08 07:21:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-04-11 14:39:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "phonenumbers";
|
2021-10-29 00:13:50 +01:00
|
|
|
version = "8.12.36";
|
2017-04-11 14:39:17 +01:00
|
|
|
|
2017-08-25 20:40:46 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-29 00:13:50 +01:00
|
|
|
sha256 = "e29717fcf86d68082fc6e42ca07e52bff863b6e0b354edd1644ba15c35ef213d";
|
2017-08-25 20:40:46 +01:00
|
|
|
};
|
|
|
|
|
2021-07-08 07:21:50 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/*.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "phonenumbers" ];
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2021-07-08 07:21:50 +01:00
|
|
|
description = "Python module for handling international phone numbers";
|
|
|
|
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
|
|
|
license = licenses.asl20;
|
2021-01-24 00:29:22 +00:00
|
|
|
maintainers = with maintainers; [ fadenb ];
|
2017-04-11 14:39:17 +01:00
|
|
|
};
|
|
|
|
}
|