13 buildPythonPackage rec {
14 pname = "django-phonenumber-field";
18 disabled = pythonOlder "3.8";
21 inherit pname version;
22 hash = "sha256-+c2z3ghfmcJJMoKTo7k9Tl+kQMDI47mesND1R0hil5c=";
29 propagatedBuildInputs = [
31 ] ++ passthru.optional-dependencies.phonenumbers;
38 pythonImportsCheck = [
43 ${python.interpreter} -m django test --settings tests.settings
46 passthru.optional-dependencies = {
47 phonenumbers = [ phonenumbers ];
51 description = "A django model and form field for normalised phone numbers using python-phonenumbers";
52 homepage = "https://github.com/stefanfoulis/django-phonenumber-field/";
53 changelog = "https://github.com/stefanfoulis/django-phonenumber-field/releases/tag/${version}";
54 license = licenses.mit;
55 maintainers = with maintainers; [ sephi ];