1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/development/python-modules/django_guardian.nix
Frederik Rietdijk 959842a9c7 Python: add pname attributes to libraries
so that we can use the update script.
2017-05-27 11:30:21 +02:00

28 lines
839 B
Nix

{ stdenv, buildPythonPackage, python, fetchurl
, django_environ, mock, django, six
, pytest, pytestrunner, pytest-django, setuptools_scm
}:
buildPythonPackage rec {
pname = "django-guardian";
name = "${pname}-${version}";
version = "1.4.8";
src = fetchurl {
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
sha256 = "039mfx47c05vl6vlld0ahyq37z7m5g68vqc38pj8iic5ysr98drm";
};
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];
propagatedBuildInputs = [ django six ];
checkPhase = ''
${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
'';
meta = with stdenv.lib; {
description = "Per object permissions for Django";
homepage = https://github.com/django-guardian/django-guardian;
licenses = [ licenses.mit licenses.bsd2 ];
};
}