2019-03-14 03:15:09 +00:00
|
|
|
{ gevent
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hostname
|
|
|
|
, pytest
|
|
|
|
, python
|
2021-01-11 07:54:33 +00:00
|
|
|
, lib, stdenv
|
2019-03-14 03:15:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ruffus";
|
2020-09-25 23:37:08 +01:00
|
|
|
version = "2.8.4";
|
2019-03-14 03:15:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgat-developers";
|
2019-09-09 00:38:31 +01:00
|
|
|
repo = pname;
|
2019-03-14 03:15:09 +00:00
|
|
|
rev = "v${version}";
|
2020-09-25 23:37:08 +01:00
|
|
|
sha256 = "0fnzpchwwqsy5h18fs0n90s51w25n0dx0l74j0ka6lvhjl5sxn4c";
|
2019-03-14 03:15:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ gevent ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hostname
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2020-09-25 23:37:08 +01:00
|
|
|
# tests very flaky & hang often on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
# test files do indeed need to be executed separately
|
2019-03-14 03:15:09 +00:00
|
|
|
checkPhase = ''
|
2020-09-25 23:37:08 +01:00
|
|
|
pushd ruffus/test
|
|
|
|
rm test_with_logger.py # spawns 500 processes
|
|
|
|
for f in test_*.py ; do
|
|
|
|
HOME=$TMPDIR pytest -v --disable-warnings $f
|
|
|
|
done
|
|
|
|
popd
|
2019-03-14 03:15:09 +00:00
|
|
|
'';
|
2020-09-25 23:37:08 +01:00
|
|
|
pythonImportsCheck = [ "ruffus" ];
|
2019-03-14 03:15:09 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-14 03:15:09 +00:00
|
|
|
description = "Light-weight Python Computational Pipeline Management";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.ruffus.org.uk";
|
2019-03-14 03:15:09 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.kiwi ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|