about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-pglocks/default.nix
blob: 4bea472194123a4782b2af8fa03a4ebf92a5df13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchPypi,
  django,
  six,
}:

buildPythonPackage rec {
  pname = "django-pglocks";
  version = "1.0.4";
  format = "setuptools";

  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 = "3c47c66fbfbd268ef46269673a0516a039539b0972b8ed2ec9cfee44c4b65523";
  };

  buildInputs = [ django ];
  propagatedBuildInputs = [
    django
    six
  ];

  # tests need a postgres database
  doCheck = false;
}