mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
python310Packages.django-phonenumber-field: add optional-dependencies, move babel to tests
babel is optional
This commit is contained in:
parent
4bc8335bb4
commit
373e52bcfe
@ -32,11 +32,10 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
phonenumbers
|
||||
babel
|
||||
];
|
||||
] ++ passthru.optional-dependencies.phonenumbers;
|
||||
|
||||
nativeCheckInputs = [
|
||||
babel
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
@ -48,6 +47,10 @@ buildPythonPackage rec {
|
||||
${python.interpreter} -m django test --settings tests.settings
|
||||
'';
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
phonenumbers = [ phonenumbers ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A django model and form field for normalised phone numbers using python-phonenumbers";
|
||||
homepage = "https://github.com/stefanfoulis/django-phonenumber-field/";
|
||||
|
Loading…
Reference in New Issue
Block a user