diff --git a/pkgs/development/python-modules/django-encrypted-model-fields/default.nix b/pkgs/development/python-modules/django-encrypted-model-fields/default.nix new file mode 100644 index 000000000000..242d173db68a --- /dev/null +++ b/pkgs/development/python-modules/django-encrypted-model-fields/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, cryptography +, django +, fetchPypi +, lib +, poetry-core +, pythonOlder }: +buildPythonPackage rec { + pname = "django-encrypted-model-fields"; + version = "0.6.5"; + disabled = pythonOlder "3.6"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-i9IcVWXA1k7E29N1rTT+potNotuHHew/px/nteQiHJk="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + cryptography + django + ]; + + pythonImportsCheck = [ "encrypted_model_fields" ]; + + meta = with lib; { + description = "A set of fields that wrap standard Django fields with encryption provided by the python cryptography library"; + homepage = "https://gitlab.com/lansharkconsulting/django/django-encrypted-model-fields"; + license = licenses.mit; + maintainers = with maintainers; [ centromere ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3eb621058404..3def1617d4ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2480,6 +2480,8 @@ in { django-dynamic-preferences = callPackage ../development/python-modules/django-dynamic-preferences { }; + django-encrypted-model-fields = callPackage ../development/python-modules/django-encrypted-model-fields { }; + django-environ = callPackage ../development/python-modules/django_environ { }; django-extensions = callPackage ../development/python-modules/django-extensions { };