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