python.pkgs.django_guardian: simplify expression

This commit is contained in:
Robert Schütz 2019-03-15 17:48:21 +01:00
parent dc7bddbb89
commit 6e49276182

View File

@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, python, fetchPypi { stdenv, buildPythonPackage, fetchPypi
, django_environ, mock, django, six , django_environ, mock, django, six
, pytest, pytestrunner, pytest-django, setuptools_scm , pytest, pytestrunner, pytest-django
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-guardian"; pname = "django-guardian";
@ -12,12 +12,7 @@ buildPythonPackage rec {
}; };
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ]; checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
buildInputs = [ setuptools_scm ]; propagatedBuildInputs = [ django ];
propagatedBuildInputs = [ django six ];
checkPhase = ''
${python.interpreter} nix_run_setup test --addopts="--ignore build"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Per object permissions for Django"; description = "Per object permissions for Django";