depot/third_party/nixpkgs/pkgs/development/python-modules/phonenumbers/default.nix

36 lines
688 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.12.39";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0f7745e1f108654db347d885e814cbb5f225b8c5f5ce336024b193c79291ddaa";
};
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 ];
};
}