2021-02-06 12:27:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, versiontools
|
|
|
|
, django
|
|
|
|
, sampledata
|
|
|
|
, nose
|
|
|
|
, pillow
|
|
|
|
, six
|
2017-08-31 20:23:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-sampledatahelper";
|
2020-06-06 07:47:05 +01:00
|
|
|
version = "0.5";
|
2017-08-31 20:23:18 +01:00
|
|
|
|
2021-02-06 12:27:01 +00:00
|
|
|
# no tests on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kaleidos";
|
|
|
|
repo = "django-sampledatahelper";
|
|
|
|
rev = "8576f352ec26a3650f4386a6e1285b723f6aec23"; # no tag
|
|
|
|
sha256 = "1fx3ql4b9791594zkary19n20x5ra1m1n3pjaya9di1qy64csac4";
|
2017-08-31 20:23:18 +01:00
|
|
|
};
|
|
|
|
|
2021-02-06 12:27:01 +00:00
|
|
|
nativeBuildInputs = [ versiontools ];
|
2017-08-31 20:23:18 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ django sampledata ];
|
|
|
|
|
2021-02-06 12:27:01 +00:00
|
|
|
checkInputs = [ nose pillow six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings NOSE_EXCLUDE=test_calling_command nosetests -v
|
2017-08-31 20:23:18 +01:00
|
|
|
'';
|
|
|
|
|
2021-02-06 12:27:01 +00:00
|
|
|
meta = {
|
|
|
|
description = "Helper class for generate sample data for django apps development";
|
|
|
|
homepage = "https://github.com/kaleidos/django-sampledatahelper";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2017-08-31 20:23:18 +01:00
|
|
|
}
|