3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/APScheduler/default.nix

70 lines
1.1 KiB
Nix
Raw Normal View History

2017-05-01 08:52:32 +01:00
{ lib
, stdenv
2017-05-01 08:52:32 +01:00
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytestCheckHook
, pytest-asyncio
, pytest-tornado
, pytest-cov
2017-05-01 08:52:32 +01:00
, sqlalchemy
, tornado
, twisted
, mock
, gevent
, six
, pytz
, tzlocal
, funcsigs
, setuptools
, pythonOlder
2017-05-01 08:52:32 +01:00
}:
buildPythonPackage rec {
pname = "APScheduler";
version = "3.7.0";
disabled = pythonOlder "3.7";
2017-05-01 08:52:32 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "1cab7f2521e107d07127b042155b632b7a1cd5e02c34be5a28ff62f77c900c6a";
2017-05-01 08:52:32 +01:00
};
buildInputs = [
setuptools-scm
2017-05-01 08:52:32 +01:00
];
checkInputs = [
pytest-asyncio
pytest-tornado
pytestCheckHook
pytest-cov
2017-05-01 08:52:32 +01:00
sqlalchemy
tornado
twisted
mock
gevent
];
2017-05-01 08:52:32 +01:00
propagatedBuildInputs = [
six
pytz
tzlocal
funcsigs
setuptools
];
2017-05-01 08:52:32 +01:00
disabledTests = lib.optionals stdenv.isDarwin [
"test_submit_job"
"test_max_instances"
];
pythonImportsCheck = [ "apscheduler" ];
2017-05-01 08:52:32 +01:00
meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://github.com/agronholm/apscheduler";
2017-05-01 08:52:32 +01:00
license = licenses.mit;
};
}