about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-encrypted-model-fields
diff options
context:
space:
mode:
authorAlex Wied <centromere@users.noreply.github.com>2022-08-17 12:59:49 -0400
committerAlex Wied <centromere@users.noreply.github.com>2022-08-18 15:01:11 -0400
commit23dfd17bf103e7f6e2419012aa7acc389c630e17 (patch)
tree3f4a7be9b56f395881f957a153d0967738864234 /pkgs/development/python-modules/django-encrypted-model-fields
parentdc32017e38ccd8bf6d414135ae0942a494ff4ca5 (diff)
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
Diffstat (limited to 'pkgs/development/python-modules/django-encrypted-model-fields')
-rw-r--r--pkgs/development/python-modules/django-encrypted-model-fields/default.nix36
1 files changed, 36 insertions, 0 deletions
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 0000000000000..242d173db68a1
--- /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 ];
+  };
+}