1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "phonenumbers";
10 version = "8.13.20";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-vys1qAbTeXnlNhEJQp2kbZoEflnZr5hjnXM8g059qyI=";
18 };
19
20 nativeCheckInputs = [
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 changelog = "https://github.com/daviddrysdale/python-phonenumbers/blob/v${version}/python/HISTORY.md";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ fadenb ];
38 };
39}