2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "phonenumbers";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "8.12.35";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-17 02:12:59 +00:00
|
|
|
sha256 = "f426d419aabf6366c27ef1193918cc55217ef0e8be8f09cbf0667131037ca229";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/*.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "phonenumbers" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "Python module for handling international phone numbers";
|
|
|
|
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
|
|
|
license = licenses.asl20;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ fadenb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|