From 23dfd17bf103e7f6e2419012aa7acc389c630e17 Mon Sep 17 00:00:00 2001 From: Alex Wied Date: Wed, 17 Aug 2022 12:59:49 -0400 Subject: [PATCH] pythonPackage.django-encrypted-model-fields: init at 0.6.5 A set of fields that wrap standard Django fields with encryption provided by the python cryptography library. https://gitlab.com/lansharkconsulting/django/django-encrypted-model-fields --- .../django-encrypted-model-fields/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/django-encrypted-model-fields/default.nix 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 53b1d402a3b1..a159430584ba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2466,6 +2466,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 { };