python3Packages.django-sampledatahelper: fix build
This commit is contained in:
parent
536fe36e23
commit
b8a5af6375
@ -1,30 +1,39 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi,
|
{ lib
|
||||||
django, nose, pillow, sampledata, six, versiontools
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, versiontools
|
||||||
|
, django
|
||||||
|
, sampledata
|
||||||
|
, nose
|
||||||
|
, pillow
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-sampledatahelper";
|
pname = "django-sampledatahelper";
|
||||||
version = "0.5";
|
version = "0.5";
|
||||||
|
|
||||||
|
# no tests on PyPI
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kaleidos";
|
||||||
|
repo = "django-sampledatahelper";
|
||||||
|
rev = "8576f352ec26a3650f4386a6e1285b723f6aec23"; # no tag
|
||||||
|
sha256 = "1fx3ql4b9791594zkary19n20x5ra1m1n3pjaya9di1qy64csac4";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ versiontools ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ django sampledata ];
|
||||||
|
|
||||||
|
checkInputs = [ nose pillow six ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
DJANGO_SETTINGS_MODULE=tests.settings NOSE_EXCLUDE=test_calling_command nosetests -v
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Helper class for generate sample data for django apps development";
|
description = "Helper class for generate sample data for django apps development";
|
||||||
homepage = "https://github.com/kaleidos/django-sampledatahelper";
|
homepage = "https://github.com/kaleidos/django-sampledatahelper";
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "3fbc5533f1055f9d1944097f6271e8b18fcf4ed5cc582b518616445145300015";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ django nose pillow sampledata six versiontools ];
|
|
||||||
propagatedBuildInputs = [ django sampledata ];
|
|
||||||
|
|
||||||
# HACK To prevent collision with pythonPackages.sampledata
|
|
||||||
preBuild = ''
|
|
||||||
rm tests/*
|
|
||||||
'';
|
|
||||||
|
|
||||||
# ERROR: test_image_from_directory (tests.tests.TestImageHelpers)
|
|
||||||
doCheck = false;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user