nixpkgs/pkgs/development/python-modules/ruffus/default.nix

49 lines
1001 B
Nix
Raw Normal View History

2019-03-14 03:15:09 +00:00
{ gevent
, buildPythonPackage
, fetchFromGitHub
, hostname
, pytest
, python
, lib, stdenv
2019-03-14 03:15:09 +00:00
}:
buildPythonPackage rec {
pname = "ruffus";
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}";
sha256 = "0fnzpchwwqsy5h18fs0n90s51w25n0dx0l74j0ka6lvhjl5sxn4c";
2019-03-14 03:15:09 +00:00
};
propagatedBuildInputs = [ gevent ];
checkInputs = [
hostname
pytest
];
# 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 = ''
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
'';
pythonImportsCheck = [ "ruffus" ];
2019-03-14 03:15:09 +00:00
meta = with lib; {
2019-03-14 03:15:09 +00:00
description = "Light-weight Python Computational Pipeline Management";
homepage = "http://www.ruffus.org.uk";
2019-03-14 03:15:09 +00:00
license = licenses.mit;
maintainers = [ maintainers.kiwi ];
};
}