python3Packages.django-compat: prevent throw from breaking nix eval
This commit is contained in:
parent
6c35347144
commit
5f67b6ad18
@ -1,12 +1,12 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python,
|
||||
django, six
|
||||
}:
|
||||
if stdenv.lib.versionAtLeast django.version "2.0"
|
||||
then throw "django-compat requires django < 2.0"
|
||||
else
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-compat";
|
||||
version = "1.0.15";
|
||||
# django-compat requires django < 2.0
|
||||
disabled = stdenv.lib.versionAtLeast django.version "2.0";
|
||||
|
||||
# the pypi packages don't include everything required for the tests
|
||||
src = fetchFromGitHub {
|
||||
|
Loading…
Reference in New Issue
Block a user