2017-05-01 08:52:32 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, sqlalchemy
|
|
|
|
, tornado
|
|
|
|
, twisted
|
|
|
|
, mock
|
|
|
|
, trollius
|
|
|
|
, gevent
|
|
|
|
, six
|
|
|
|
, pytz
|
|
|
|
, tzlocal
|
|
|
|
, funcsigs
|
|
|
|
, futures
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "APScheduler";
|
2021-01-21 08:02:35 +00:00
|
|
|
version = "3.7.0";
|
2017-05-01 08:52:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-21 08:02:35 +00:00
|
|
|
sha256 = "1cab7f2521e107d07127b042155b632b7a1cd5e02c34be5a28ff62f77c900c6a";
|
2017-05-01 08:52:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/APScheduler/";
|
2017-05-01 08:52:32 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|