pythonPackages.django_pipeline: 1.5.1 -> 1.6.14
This commit is contained in:
parent
127045d8e0
commit
6e78005ef1
|
@ -1,16 +1,32 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||||
, django, futures }:
|
, django, futures, mock, jinja2, jsmin, slimit }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-pipeline";
|
pname = "django-pipeline";
|
||||||
version = "1.5.1";
|
version = "1.6.14";
|
||||||
|
|
||||||
src = fetchPypi {
|
# no tests on PyPI
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "1y49fa8jj7x9qjj5wzhns3zxwj0s73sggvkrv660cqw5qb7d8hha";
|
owner = "jazzband";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1xf732bd17mgha75jfhlnms46ib2pffhpfa0ca7bmng9jhbvsl9j";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ django futures ];
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pipeline is an asset packaging library for Django";
|
description = "Pipeline is an asset packaging library for Django";
|
||||||
|
|
Loading…
Reference in New Issue