nixpkgs/pkgs/development/python-modules/APScheduler/default.nix
2021-03-10 23:52:27 +01:00

62 lines
971 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytestCheckHook
, pytestcov
, sqlalchemy
, tornado
, twisted
, mock
, trollius
, gevent
, six
, pytz
, tzlocal
, funcsigs
, futures
, setuptools
, isPy3k
}:
buildPythonPackage rec {
pname = "APScheduler";
version = "3.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "1cab7f2521e107d07127b042155b632b7a1cd5e02c34be5a28ff62f77c900c6a";
};
buildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
pytestcov
sqlalchemy
tornado
twisted
mock
trollius
gevent
];
propagatedBuildInputs = [
six
pytz
tzlocal
funcsigs
setuptools
] ++ lib.optional (!isPy3k) futures;
pythonImportsCheck = [ "apscheduler" ];
meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit;
};
}