nixpkgs/pkgs/development/python-modules/APScheduler/default.nix
2017-12-30 17:06:31 +01:00

65 lines
1006 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, pytestcov
, sqlalchemy
, tornado
, twisted
, mock
, trollius
, gevent
, six
, pytz
, tzlocal
, funcsigs
, futures
, isPy3k
}:
buildPythonPackage rec {
pname = "APScheduler";
version = "3.5.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
};
buildInputs = [
setuptools_scm
];
checkInputs = [
pytest
pytestcov
sqlalchemy
tornado
twisted
mock
trollius
gevent
];
propagatedBuildInputs = [
six
pytz
tzlocal
funcsigs
] ++ lib.optional (!isPy3k) futures;
checkPhase = ''
py.test
'';
# Somehow it cannot find pytestcov
doCheck = false;
meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed";
homepage = https://pypi.python.org/pypi/APScheduler/;
license = licenses.mit;
};
}