nixpkgs/pkgs/development/python-modules/phonenumbers/default.nix
2023-01-05 01:10:18 +01:00

38 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.13.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-fQxFwVQBOXC3i4b0GI4OAKjnfWvr73yB79wDjbh27ro=";
};
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/*.py"
];
pythonImportsCheck = [
"phonenumbers"
];
meta = with lib; {
description = "Python module for handling international phone numbers";
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
license = licenses.asl20;
maintainers = with maintainers; [ fadenb ];
};
}