mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-20 15:00:35 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
79 lines
1.3 KiB
Nix
79 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, gevent
|
|
, pytest-asyncio
|
|
, pytest-tornado
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, setuptools
|
|
, setuptools-scm
|
|
, six
|
|
, tornado
|
|
, twisted
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apscheduler";
|
|
version = "3.9.1.post1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "APScheduler";
|
|
inherit version;
|
|
hash = "sha256-sr6gMJVp2lOnJhv6DOGcZ92/4VG9p3amqQdXn9vT6yo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pytz
|
|
setuptools
|
|
six
|
|
tzlocal
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gevent
|
|
pytest-asyncio
|
|
pytest-tornado
|
|
pytestCheckHook
|
|
tornado
|
|
twisted
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov --tb=short" ""
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_broken_pool"
|
|
# gevent tests have issue on newer Python releases
|
|
"test_add_live_job"
|
|
"test_add_pending_job"
|
|
"test_shutdown"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"test_submit_job"
|
|
"test_max_instances"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"apscheduler"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library that lets you schedule your Python code to be executed";
|
|
homepage = "https://github.com/agronholm/apscheduler";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|