From 28e186f42937da94278e7c53e92cb12e454ba0f0 Mon Sep 17 00:00:00 2001 From: betaboon Date: Thu, 31 Aug 2017 21:15:35 +0200 Subject: [PATCH] pythonPackages.django-pglocks: init at 1.0.2 --- .../python-modules/django-pglocks/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/django-pglocks/default.nix diff --git a/pkgs/development/python-modules/django-pglocks/default.nix b/pkgs/development/python-modules/django-pglocks/default.nix new file mode 100644 index 000000000000..2207aa348ab0 --- /dev/null +++ b/pkgs/development/python-modules/django-pglocks/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, django }: + +buildPythonPackage rec { + pname = "django-pglocks"; + name = "${pname}-${version}"; + version = "1.0.2"; + + meta = { + description = "PostgreSQL locking context managers and functions for Django."; + homepage = https://github.com/Xof/django-pglocks; + license = lib.licenses.mit; + }; + + src = fetchPypi { + inherit pname version; + sha256 = "1ks4k0bk4457wfl3xgzr4v7xb0lxmnkhxwhlp0bbnmzipdafw1cl"; + }; + + buildInputs = [ django ]; + propagatedBuildInputs = [ django ]; + + # tests need a postgres database + doCheck = false; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 644d16c33bc7..fdd5a060bb7a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8640,6 +8640,8 @@ in { django-jinja = callPackage ../development/python-modules/django-jinja2 { }; + django-pglocks = callPackage ../development/python-modules/django-pglocks { }; + django_polymorphic = callPackage ../development/python-modules/django-polymorphic { }; django_tagging = callPackage ../development/python-modules/django_tagging { };