mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
python312Packages.schedula: init at 1.5.62
This commit is contained in:
95
pkgs/development/python-modules/schedula/default.nix
Normal file
95
pkgs/development/python-modules/schedula/default.nix
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# optional-dependencies
|
||||
dill,
|
||||
flask,
|
||||
graphviz,
|
||||
multiprocess,
|
||||
regex,
|
||||
requests,
|
||||
sphinx,
|
||||
sphinx-click,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
ddt,
|
||||
cryptography,
|
||||
schedula,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "schedula";
|
||||
version = "1.5.62";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinci1it2000";
|
||||
repo = "schedula";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-erEUdiKV1MRwjVy3SKFneJVHp6gWEok7EWdv6v6HFGM=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
optional-dependencies = rec {
|
||||
# dev omitted, we have nativeCheckInputs for this
|
||||
# form omitted, as it pulls in a kitchensink of deps, some not even packaged in nixpkgs
|
||||
io = [ dill ];
|
||||
parallel = [ multiprocess ];
|
||||
plot = [
|
||||
requests
|
||||
graphviz
|
||||
regex
|
||||
flask
|
||||
];
|
||||
sphinx = [
|
||||
sphinx
|
||||
sphinx-click
|
||||
] ++ plot;
|
||||
web = [
|
||||
requests
|
||||
regex
|
||||
flask
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs =
|
||||
[
|
||||
cryptography # doctests
|
||||
ddt
|
||||
sphinx
|
||||
pytestCheckHook
|
||||
]
|
||||
++ schedula.optional-dependencies.io
|
||||
++ schedula.optional-dependencies.parallel
|
||||
++ schedula.optional-dependencies.plot;
|
||||
|
||||
disabledTests = [
|
||||
# FAILED tests/test_setup.py::TestSetup::test_long_description - ModuleNotFoundError: No module named 'sphinxcontrib.writers'
|
||||
"test_long_description"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# ERROR tests/utils/test_form.py::TestDispatcherForm::test_form1 - ModuleNotFoundError: No module named 'chromedriver_autoinstaller'
|
||||
# ERROR tests/utils/test_form.py::TestDispatcherForm::test_form_stripe - ModuleNotFoundError: No module named 'chromedriver_autoinstaller'
|
||||
"tests/utils/test_form.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "schedula" ];
|
||||
|
||||
meta = {
|
||||
description = "Smart function scheduler for dynamic flow-based programming";
|
||||
homepage = "https://github.com/vinci1it2000/schedula";
|
||||
changelog = "https://github.com/vinci1it2000/schedula/blob/v${version}/CHANGELOG.rst";
|
||||
license = lib.licenses.eupl11;
|
||||
maintainers = with lib.maintainers; [ flokli ];
|
||||
# at least some tests fail on Darwin
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -15851,6 +15851,8 @@ self: super: with self; {
|
||||
|
||||
scenedetect = callPackage ../development/python-modules/scenedetect { };
|
||||
|
||||
schedula = callPackage ../development/python-modules/schedula { };
|
||||
|
||||
schedule = callPackage ../development/python-modules/schedule { };
|
||||
|
||||
scheduler = callPackage ../development/python-modules/scheduler { };
|
||||
|
||||
Reference in New Issue
Block a user