about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django_guardian/default.nix
blob: 90b81c8379e2b19d2e0a8387937fd4746ab2c567 (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
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, django_environ, mock, django, six
, pytest, pytestrunner, pytest-django
}:
buildPythonPackage rec {
  pname = "django-guardian";
  version = "1.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9e144bbdfa67f523dc6f70768653a19c0aac29394f947a80dcb8eb7900840637";
  };

  checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
  propagatedBuildInputs = [ django ];

  meta = with stdenv.lib; {
    description = "Per object permissions for Django";
    homepage = https://github.com/django-guardian/django-guardian;
    license = [ licenses.mit licenses.bsd2 ];
    broken = !isPy3k; # https://github.com/django-guardian/django-guardian/pull/605
  };
}