pythonPackages.ruffus: init at 2.8.1

This commit is contained in:
Robert Djubek 2019-03-14 03:15:09 +00:00
parent 33aced023e
commit a141544cb5
No known key found for this signature in database
GPG Key ID: 156C88A5B0A04B2A
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ gevent
, buildPythonPackage
, fetchFromGitHub
, hostname
, pytest
, python
, stdenv
}:
buildPythonPackage rec {
pname = "ruffus";
version = "2.8.1";
src = fetchFromGitHub {
owner = "cgat-developers";
repo = "${pname}";
rev = "v${version}";
sha256 = "1gyabqafq4s2sy0prh3k1m8859shzjmfxr7fimx10liflvki96a9";
};
propagatedBuildInputs = [ gevent ];
postPatch = ''
sed -i -e 's|/bin/bash|${stdenv.shell}|' ruffus/test/Makefile
sed -i -e 's|\tpytest|\t${pytest}/bin/pytest|' ruffus/test/Makefile
sed -i -e 's|\tpython|\t${python.interpreter}|' ruffus/test/Makefile
sed -i -e 's|/usr/bin/env bash|${stdenv.shell}|' ruffus/test/run_all_unit_tests.cmd
sed -i -e 's|python3|${python.interpreter}|' ruffus/test/run_all_unit_tests3.cmd
sed -i -e 's|python %s|${python.interpreter} %s|' ruffus/test/test_drmaa_wrapper_run_job_locally.py
'';
makefile = "ruffus/test/Makefile";
checkInputs = [
gevent
hostname
pytest
];
checkPhase = ''
export HOME=$TMPDIR
cd ruffus/test
make all PYTEST_OPTIONS="-q --disable-warnings"
'';
meta = with stdenv.lib; {
description = "Light-weight Python Computational Pipeline Management";
homepage = http://www.ruffus.org.uk;
license = licenses.mit;
maintainers = [ maintainers.kiwi ];
};
}

View File

@ -5057,6 +5057,8 @@ in {
ruamel_yaml = callPackage ../development/python-modules/ruamel_yaml { };
ruffus = callPackage ../development/python-modules/ruffus { };
runsnakerun = callPackage ../development/python-modules/runsnakerun { };
pysendfile = callPackage ../development/python-modules/pysendfile { };