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