depot/third_party/nixpkgs/pkgs/development/python-modules/phonenumbers/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

38 lines
720 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.12.56";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-gqTyJskw0C3N9tSynkz9hniZH+ZcLv1f3RQ1VxhvCGg=";
};
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 ];
};
}