1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
gevent,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-tornado,
|
|
pytest8_3CheckHook,
|
|
pytz,
|
|
setuptools,
|
|
setuptools-scm,
|
|
tornado,
|
|
twisted,
|
|
tzlocal,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apscheduler";
|
|
version = "3.11.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agronholm";
|
|
repo = "apscheduler";
|
|
tag = version;
|
|
hash = "sha256-3KSW1RdiUXlDTr30Wrc8fYb4rRnlOn6lVhBgz3r1D/4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/addopts/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
tzlocal
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gevent
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-tornado
|
|
pytest8_3CheckHook
|
|
pytz
|
|
tornado
|
|
twisted
|
|
];
|
|
|
|
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.hostPlatform.isDarwin [
|
|
"test_submit_job"
|
|
"test_max_instances"
|
|
];
|
|
|
|
pythonImportsCheck = [ "apscheduler" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/agronholm/apscheduler/releases/tag/${src.tag}";
|
|
description = "Library that lets you schedule your Python code to be executed";
|
|
homepage = "https://github.com/agronholm/apscheduler";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|