8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
64 lines
977 B
Nix
64 lines
977 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.6.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3bb5229eed6fbbdafc13ce962712ae66e175aa214c69bed35a06bffcf0c5e244";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|