2020-04-24 23:36:52 +00:00
|
|
|
{ gevent
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hostname
|
|
|
|
, pytest
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ruffus";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "2.8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgat-developers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "0fnzpchwwqsy5h18fs0n90s51w25n0dx0l74j0ka6lvhjl5sxn4c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ gevent ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
hostname
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
# tests very flaky & hang often on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
# test files do indeed need to be executed separately
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-10-07 09:15:18 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
pythonImportsCheck = [ "ruffus" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Light-weight Python Computational Pipeline Management";
|
|
|
|
homepage = "http://www.ruffus.org.uk";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.kiwi ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|