2018-03-20 10:04:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
|
|
, django, futures, mock, jinja2, jsmin, slimit }:
|
2018-03-20 08:58:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-pipeline";
|
2018-03-20 10:04:43 +00:00
|
|
|
version = "1.6.14";
|
2018-03-20 08:58:15 +00:00
|
|
|
|
2018-03-20 10:04:43 +00:00
|
|
|
# no tests on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jazzband";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1xf732bd17mgha75jfhlnms46ib2pffhpfa0ca7bmng9jhbvsl9j";
|
2018-03-20 08:58:15 +00:00
|
|
|
};
|
|
|
|
|
2018-03-20 10:04:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/tests/test_compiler.py \
|
|
|
|
--replace "/usr/bin/env" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ] ++ lib.optional (!isPy3k) futures;
|
|
|
|
|
|
|
|
checkInputs = [ jinja2 jsmin slimit ] ++ lib.optional (!isPy3k) mock;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PYTHONPATH=.:$PYTHONPATH
|
|
|
|
export DJANGO_SETTINGS_MODULE=tests.settings
|
|
|
|
${django}/bin/django-admin.py test tests
|
|
|
|
'';
|
2018-03-20 08:58:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pipeline is an asset packaging library for Django";
|
|
|
|
homepage = https://github.com/cyberdelia/django-pipeline;
|
|
|
|
license = licenses.mit;
|
2019-10-07 15:20:23 +00:00
|
|
|
broken = true;
|
2018-03-20 08:58:15 +00:00
|
|
|
};
|
|
|
|
}
|