1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "phonenumbers";
10 version = "8.12.57";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-BX0ZZpYvuGs9xEe/rCyOJc7td0UJ5JsYCSahOpmRAxg=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 pytestFlagsArray = [
25 "tests/*.py"
26 ];
27
28 pythonImportsCheck = [
29 "phonenumbers"
30 ];
31
32 meta = with lib; {
33 description = "Python module for handling international phone numbers";
34 homepage = "https://github.com/daviddrysdale/python-phonenumbers";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ fadenb ];
37 };
38}