Skip to content

Commit

Permalink
pythonPackages.django_pipeline: 1.5.1 -> 1.6.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Mar 20, 2018
1 parent 127045d commit 6e78005
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions pkgs/development/python-modules/django-pipeline/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
{ lib, buildPythonPackage, fetchPypi
, django, futures }:
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, django, futures, mock, jinja2, jsmin, slimit }:

buildPythonPackage rec {
pname = "django-pipeline";
version = "1.5.1";
version = "1.6.14";

src = fetchPypi {
inherit pname version;
sha256 = "1y49fa8jj7x9qjj5wzhns3zxwj0s73sggvkrv660cqw5qb7d8hha";
# no tests on PyPI
src = fetchFromGitHub {
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; {
description = "Pipeline is an asset packaging library for Django";
Expand Down

0 comments on commit 6e78005

Please sign in to comment.