2021-07-08 07:21:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2022-09-22 08:44:41 +01:00
|
|
|
, pythonOlder
|
2021-07-08 07:21:50 +01:00
|
|
|
}:
|
2017-04-11 14:39:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "phonenumbers";
|
2022-12-18 20:24:43 +00:00
|
|
|
version = "8.13.2";
|
2021-11-13 15:39:57 +00:00
|
|
|
format = "setuptools";
|
2017-04-11 14:39:17 +01:00
|
|
|
|
2022-09-22 08:44:41 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2017-08-25 20:40:46 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-18 20:24:43 +00:00
|
|
|
hash = "sha256-AXn2iNSMDn4WHre52G1YeUCvH1F0+Xwf39iTxZnA2Uo=";
|
2017-08-25 20:40:46 +01:00
|
|
|
};
|
|
|
|
|
2021-07-08 07:21:50 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-13 15:39:57 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/*.py"
|
|
|
|
];
|
2021-07-08 07:21:50 +01:00
|
|
|
|
2021-11-13 15:39:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"phonenumbers"
|
|
|
|
];
|
2021-07-08 07:21:50 +01:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|