treewide: replace passthru.optional-dependencies with optional-dependencies

This commit is contained in:
Robert Schütz 2024-09-28 22:35:45 -07:00
parent 8637e879e4
commit 543781083a
405 changed files with 751 additions and 769 deletions

View File

@ -32,9 +32,9 @@ python3.pkgs.buildPythonApplication rec {
rich-pixels
textual
textual-universal-directorytree
] ++ lib.attrVals extras passthru.optional-dependencies;
] ++ lib.attrVals extras optional-dependencies;
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
all = [
pyarrow
textual-universal-directorytree.optional-dependencies.remote

View File

@ -52,7 +52,7 @@ python.pkgs.buildPythonApplication rec {
watchdog
];
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
aws = [ boto3 ];
azure = [
azure-storage-blob

View File

@ -36,9 +36,9 @@ python3Packages.buildPythonApplication rec {
setuptools
wxpython
]
++ lib.flatten (lib.attrValues passthru.optional-dependencies);
++ lib.flatten (lib.attrValues optional-dependencies);
passthru.optional-dependencies = with python3Packages; {
optional-dependencies = with python3Packages; {
cam = [
opencv4
];

View File

@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication rec {
pexpect
];
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
dev = [
mypy
pytest

View File

@ -4,8 +4,8 @@
, withGUI ? true
}:
let
mandown' = python3Packages.mandown.overrideAttrs (prev: {
propagatedBuildInputs = prev.propagatedBuildInputs ++ lib.optionals withGUI prev.passthru.optional-dependencies.gui;
mandown' = python3Packages.mandown.overridePythonAttrs (prev: {
propagatedBuildInputs = prev.propagatedBuildInputs ++ lib.optionals withGUI prev.optional-dependencies.gui;
});
mandownApp = python3Packages.toPythonApplication mandown';
in

View File

@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
aiohttp
];
passthru.optional-dependencies = {
optional-dependencies = {
pulseaudio = with python3.pkgs; [
pasimple
pulsectl

View File

@ -27,11 +27,11 @@ python3.pkgs.buildPythonApplication rec {
propagatedBuildInputs = with python3.pkgs; [
jinja2
] ++ lib.attrVals extras passthru.optional-dependencies;
] ++ lib.attrVals extras optional-dependencies;
pythonImportsCheck = [ "jinja2cli" ];
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
hjson = [ hjson ];
json5 = [ json5 ];
toml = [ toml ];

View File

@ -33,7 +33,7 @@ python3.pkgs.buildPythonApplication rec {
tenacity
];
passthru.optional-dependencies = {
optional-dependencies = {
api = with python3.pkgs; [
fastapi
uvicorn

View File

@ -24,7 +24,7 @@ python3.pkgs.buildPythonApplication rec {
tomli
];
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
poetry_plugin = [
poetry
];

View File

@ -45,7 +45,7 @@ python3.pkgs.buildPythonApplication rec {
xlsxwriter
];
passthru.optional-dependencies = with python3.pkgs; {
optional-dependencies = with python3.pkgs; {
development = [
invoke
tox

View File

@ -30,7 +30,7 @@ python3Packages.buildPythonApplication rec {
zeroconf
];
passthru.optional-dependencies = {
optional-dependencies = {
silerovad = with python3Packages; [
pysilero-vad
];

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
dissect-target
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
dissect-target
minio
@ -52,7 +52,7 @@ buildPythonPackage rec {
] ++ dissect-target.optional-dependencies.full;
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
pythonImportsCheck = [ "acquire" ];

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
rsa
];
passthru.optional-dependencies = {
optional-dependencies = {
async = [
aiofiles
async-timeout
@ -46,7 +46,7 @@ buildPythonPackage rec {
mock
pycryptodome
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "adb_shell" ];

View File

@ -48,7 +48,7 @@ buildPythonPackage rec {
wrapt
];
passthru.optional-dependencies = {
optional-dependencies = {
awscli = [ awscli ];
boto3 = [ boto3 ];
};

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
passthru.optional-dependencies = {
optional-dependencies = {
oscore = [
cbor2
cryptography

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ siosocks ];
passthru.optional-dependencies = {
optional-dependencies = {
socks = [ siosocks ];
};
@ -42,7 +42,7 @@ buildPythonPackage rec {
pytest-asyncio
pytestCheckHook
trustme
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# uses 127.0.0.2, which macos doesn't like

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ];
passthru.optional-dependencies = {
optional-dependencies = {
aiohttp = [ aiohttp ];
};
@ -45,7 +45,7 @@ buildPythonPackage rec {
pytestCheckHook
pytest-aiohttp
pytest-cov-stub
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "aiojobs" ];

View File

@ -45,9 +45,9 @@ buildPythonPackage rec {
fastapi
pytestCheckHook
setproctitle
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
passthru.optional-dependencies = {
optional-dependencies = {
aiohttp = [ aiohttp ];
#asgi = [ aiohttp-asgi ];
cron = [ croniter ];

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
quantile-python
];
passthru.optional-dependencies = {
optional-dependencies = {
aiohttp = [ aiohttp ];
starlette = [ starlette ];
quart = [ quart ];
@ -46,7 +46,7 @@ buildPythonPackage rec {
httpx
fastapi
uvicorn
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "aioprometheus" ];

View File

@ -39,7 +39,7 @@ buildPythonPackage rec {
requests
];
passthru.optional-dependencies = {
optional-dependencies = {
pandas = [
pandas
];
@ -49,7 +49,7 @@ buildPythonPackage rec {
aioresponses
requests-mock
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
# Starting with 3.0.0 most tests require an API key
doCheck = false;

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
pure-python-adb
];
passthru.optional-dependencies = {
optional-dependencies = {
async = [ aiofiles ];
inherit (adb-shell.optional-dependencies) usb;
};
@ -39,7 +39,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
mock
pytestCheckHook
] ++ passthru.optional-dependencies.async ++ passthru.optional-dependencies.usb;
] ++ optional-dependencies.async ++ optional-dependencies.usb;
disabledTests = [
# Requires git but fails anyway

View File

@ -91,7 +91,7 @@ buildPythonPackage rec {
unique-log-filter
];
passthru.optional-dependencies = {
optional-dependencies = {
AngrDB = [ sqlalchemy ];
};

View File

@ -50,7 +50,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
vertex = [ google-auth ];
};

View File

@ -56,7 +56,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
trio = [ trio ];
};
@ -69,7 +69,7 @@ buildPythonPackage rec {
pytestCheckHook
trustme
uvloop
] ++ passthru.optional-dependencies.trio;
] ++ optional-dependencies.trio;
pytestFlagsArray = [
"-W"

View File

@ -22,14 +22,14 @@ buildPythonPackage rec {
hash = "sha256-omw6znk09r2SigPfaVrtA6dd8KeSfjaPgGfK12ty23g=";
};
passthru.optional-dependencies = {
optional-dependencies = {
graphql = [ graphql-core ];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "apischema" ];

View File

@ -29,7 +29,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ packaging ];
passthru.optional-dependencies = {
optional-dependencies = {
marshmallow = [ marshmallow ];
yaml = [ pyyaml ];
validation = [
@ -41,7 +41,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
mock
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "apispec" ];

View File

@ -21,7 +21,7 @@ buildPythonPackage rec {
hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
};
passthru.optional-dependencies = {
optional-dependencies = {
with-fonttools = [ fonttools ];
};

View File

@ -106,7 +106,7 @@ buildPythonPackage rec {
typer
];
passthru.optional-dependencies = {
optional-dependencies = {
server =
[
aiofiles
@ -178,7 +178,7 @@ buildPythonPackage rec {
pytest-mock
pytest-asyncio
factory-boy
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTestPaths = [ "tests/server/datasets/test_dao.py" ];

View File

@ -42,7 +42,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "argparse_manpage" ];
passthru.optional-dependencies = {
optional-dependencies = {
setuptools = [ setuptools ];
};

View File

@ -45,7 +45,7 @@ buildPythonPackage rec {
websocket-client
];
passthru.optional-dependencies = {
optional-dependencies = {
tui = [
asciimatics
pyperclip
@ -64,7 +64,7 @@ buildPythonPackage rec {
responses
psutil
uvicorn
] ++ passthru.optional-dependencies.tui;
] ++ optional-dependencies.tui;
disabledTests = [
# require a running display server

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
xmltodict
];
passthru.optional-dependencies = {
optional-dependencies = {
all = [
numpy
rapidfuzz
@ -61,7 +61,7 @@ buildPythonPackage rec {
pytest-cov-stub
pytestCheckHook
time-machine
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "avwx" ];

View File

@ -57,7 +57,7 @@ buildPythonPackage rec {
requests-aws4auth
];
passthru.optional-dependencies = {
optional-dependencies = {
sqlserver = [ pyodbc ];
sparql = [ sparqlwrapper ];
};

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
aio = [ aiohttp ];
};
@ -54,7 +54,7 @@ buildPythonPackage rec {
pytest-asyncio
pytestCheckHook
trio
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
# test server needs to be available
preCheck = ''

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
aio = [ azure-core ] ++ azure-core.optional-dependencies.aio;
};

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
aio = [ azure-core ] ++ azure-core.optional-dependencies.aio;
};

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
passthru.optional-dependencies = {
optional-dependencies = {
fuzz = [ frelatage ];
};

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
unidiff
];
passthru.optional-dependencies = {
optional-dependencies = {
word_list = [ pyahocorasick ];
gibberish = [ gibberish-detector ];
};
@ -47,7 +47,7 @@ buildPythonPackage rec {
pkgs.gitMinimal
pytestCheckHook
responses
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
preCheck = ''
export HOME=$(mktemp -d);

View File

@ -47,14 +47,14 @@ buildPythonPackage rec {
soupsieve
];
passthru.optional-dependencies = {
optional-dependencies = {
html5lib = [ html5lib ];
lxml = [ lxml ];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "bs4" ];

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies.compiler = [
optional-dependencies.compiler = [
black
jinja2
isort
@ -54,7 +54,7 @@ buildPythonPackage rec {
pytest-mock
pytest7CheckHook
tomlkit
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "betterproto" ];

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
pyjwt
];
passthru.optional-dependencies = {
optional-dependencies = {
china = [ pillow ];
};
@ -57,7 +57,7 @@ buildPythonPackage rec {
pytestCheckHook
respx
time-machine
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = [
# presumably regressed in pytest-asyncio 0.23.0

View File

@ -54,7 +54,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
colorama = [ colorama ];
d = [ aiohttp ];
uvloop = [ uvloop ];
@ -71,7 +71,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
parameterized
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [
"-W"

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
webencodings
];
passthru.optional-dependencies = {
optional-dependencies = {
css = [ tinycss2 ];
};

View File

@ -34,7 +34,7 @@ buildPythonPackage rec {
openldap
];
passthru.optional-dependencies = {
optional-dependencies = {
gevent = [ gevent ];
tornado = [ tornado ];
trio = [ trio ];

View File

@ -378,7 +378,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
accessanalyzer = [ mypy-boto3-accessanalyzer ];
account = [ mypy-boto3-account ];
acm = [ mypy-boto3-acm ];

View File

@ -49,7 +49,7 @@ buildPythonPackage rec {
"tests/integration"
];
passthru.optional-dependencies = {
optional-dependencies = {
crt = [ botocore.optional-dependencies.crt ];
};

View File

@ -51,7 +51,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "botocore" ];
passthru.optional-dependencies = {
optional-dependencies = {
crt = [ awscrt ];
};

View File

@ -71,9 +71,15 @@ buildPythonPackage rec {
tzlocal
urllib3
]
++ passthru.optional-dependencies.launchpad
++ passthru.optional-dependencies.fastimport
++ passthru.optional-dependencies.github;
++ optional-dependencies.launchpad
++ optional-dependencies.fastimport
++ optional-dependencies.github;
optional-dependencies = {
launchpad = [ launchpadlib ];
fastimport = [ fastimport ];
github = [ pygithub ];
};
nativeCheckInputs = [ testtools ];
@ -107,11 +113,6 @@ buildPythonPackage rec {
package = breezy;
command = "HOME=$TMPDIR brz --version";
};
optional-dependencies = {
launchpad = [ launchpadlib ];
fastimport = [ fastimport ];
github = [ pygithub ];
};
};
meta = with lib; {

View File

@ -28,7 +28,7 @@ buildPythonPackage rec {
ecdsa
];
passthru.optional-dependencies.smartcard = [ pyscard ];
optional-dependencies.smartcard = [ pyscard ];
# tests requires hardware
doCheck = false;

View File

@ -22,7 +22,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ webob ];
passthru.optional-dependencies = {
optional-dependencies = {
flask = [
blinker
flask

View File

@ -74,7 +74,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ jsonpickle ];
passthru.optional-dependencies = {
optional-dependencies = {
kafka = [ confluent-kafka ];
};
@ -85,7 +85,7 @@ buildPythonPackage rec {
checkInputs = [
myst-docutils
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTestPaths = [
# dependens on an old myst-docutils version

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
requests
];
passthru.optional-dependencies = {
optional-dependencies = {
filecache = [ filelock ];
redis = [ redis ];
};
@ -46,7 +46,7 @@ buildPythonPackage rec {
mock
pytestCheckHook
requests
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "cachecontrol" ];

View File

@ -25,14 +25,14 @@ buildPythonPackage rec {
build-system = [ hatchling ];
passthru.optional-dependencies = {
optional-dependencies = {
pydantic = [ pydantic ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
] ++ passthru.optional-dependencies.pydantic;
] ++ optional-dependencies.pydantic;
pythonImportsCheck = [ "camel_converter" ];

View File

@ -35,7 +35,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
docs = [
mkdocs-material
mkdocs-mermaid2-plugin
@ -45,7 +45,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTestPaths = [
# Test requires internet connection to mermaid.ink

View File

@ -49,7 +49,7 @@ buildPythonPackage rec {
six
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
passthru.optional-dependencies = {
optional-dependencies = {
arxml = [ lxml ];
fibex = [ lxml ];
kcd = [ lxml ];
@ -65,7 +65,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pytestFlagsArray = [
# long_envvar_name_imports requires stable key value pair ordering

View File

@ -42,12 +42,12 @@ buildPythonPackage rec {
textparser
];
passthru.optional-dependencies.plot = [ matplotlib ];
optional-dependencies.plot = [ matplotlib ];
nativeCheckInputs = [
parameterized
pytestCheckHook
] ++ passthru.optional-dependencies.plot;
] ++ optional-dependencies.plot;
pythonImportsCheck = [ "cantools" ];

View File

@ -65,7 +65,7 @@ buildPythonPackage rec {
shapely
];
passthru.optional-dependencies = {
optional-dependencies = {
ows = [
owslib
pillow
@ -80,7 +80,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-mpl
pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues optional-dependencies);
preCheck = ''
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
passthru.optional-dependencies = {
optional-dependencies = {
dill = [ dill ];
diskcache = [ diskcache ];
redis = [ redis ];

View File

@ -78,7 +78,7 @@ buildPythonPackage rec {
pytz
pyyaml
sure
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues optional-dependencies);
# This is used to determine the version of cython that can be used
CASS_DRIVER_ALLOWED_CYTHON_VERSION = cython.version;
@ -127,7 +127,7 @@ buildPythonPackage rec {
"test_nts_token_performance"
];
passthru.optional-dependencies = {
optional-dependencies = {
cle = [ cryptography ];
eventlet = [ eventlet ];
gevent = [ gevent ];

View File

@ -55,7 +55,7 @@ buildPythonPackage rec {
vine
];
passthru.optional-dependencies = {
optional-dependencies = {
gcs = [ google-cloud-storage ];
mongodb = [ pymongo ];
msgpack = [ msgpack ];
@ -71,7 +71,7 @@ buildPythonPackage rec {
pytest-timeout
pytest-xdist
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTestPaths = [
# test_eventlet touches network

View File

@ -57,7 +57,7 @@ buildPythonPackage rec {
tzlocal
];
passthru.optional-dependencies = {
optional-dependencies = {
requests-mocker = [ requests-mock ];
web-api = [
jinja2
@ -73,7 +73,7 @@ buildPythonPackage rec {
pytestCheckHook
pytz
requests
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = [
# pyhanko_certvalidator.errors.DisallowedAlgorithmError

View File

@ -38,7 +38,7 @@ buildPythonPackage rec {
msgpack
];
passthru.optional-dependencies = {
optional-dependencies = {
cryptography = [ cryptography ];
};

View File

@ -111,7 +111,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "cherrypy" ];
passthru.optional-dependencies = {
optional-dependencies = {
json = [ simplejson ];
memcached_session = [ python-memcached ];
routes_dispatcher = [ routes ];

View File

@ -52,7 +52,7 @@ buildPythonPackage rec {
tritonclient
];
passthru.optional-dependencies = {
optional-dependencies = {
all = [ pycocotools ];
};

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
packaging
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
faust-cchardet
pandas
@ -46,7 +46,7 @@ buildPythonPackage rec {
];
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
pythonImportsCheck = [
"clevercsv"

View File

@ -28,14 +28,14 @@ buildPythonPackage rec {
tabulate
] ++ tabulate.optional-dependencies.widechars;
passthru.optional-dependencies = {
optional-dependencies = {
styles = [ pygments ];
};
nativeCheckInputs = [
pytestCheckHook
mock
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
meta = with lib; {
description = "Python helpers for common CLI tasks";

View File

@ -53,7 +53,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-dotenv
] ++ passthru.optional-dependencies.sqlalchemy ++ passthru.optional-dependencies.numpy;
] ++ optional-dependencies.sqlalchemy ++ optional-dependencies.numpy;
# these tests require a running clickhouse instance
disabledTestPaths = [
@ -68,14 +68,12 @@ buildPythonPackage rec {
"clickhouse_connect.driverc.npconv"
];
passthru = {
optional-dependencies = {
sqlalchemy = [ sqlalchemy ];
numpy = [ numpy ];
pandas = [ pandas ];
arrow = [ pyarrow ];
orjson = [ orjson ];
};
optional-dependencies = {
sqlalchemy = [ sqlalchemy ];
numpy = [ numpy ];
pandas = [ pandas ];
arrow = [ pyarrow ];
orjson = [ orjson ];
};
meta = with lib; {

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
typing-extensions
];
passthru.optional-dependencies = {
optional-dependencies = {
all = [ cloudpathlib ];
azure = [ azure-storage-blob ];
gs = [ google-cloud-storage ];

View File

@ -49,7 +49,7 @@ buildPythonPackage rec {
stanio
];
passthru.optional-dependencies = {
optional-dependencies = {
all = [ xarray ];
};
@ -59,7 +59,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.all;
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.all;
disabledTestPaths = [
# No need to test these when using Nix

View File

@ -48,14 +48,12 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-mock
] ++ passthru.optional-dependencies.pandas;
] ++ optional-dependencies.pandas;
pythonImportsCheck = [ "coinmetrics.api_client" ];
passthru = {
optional-dependencies = {
pandas = [ pandas ];
};
optional-dependencies = {
pandas = [ pandas ];
};
meta = with lib; {

View File

@ -48,7 +48,7 @@ buildPythonPackage rec {
torchvision
];
passthru.optional-dependencies = {
optional-dependencies = {
tutorials = [
ipywidgets
jupyter

View File

@ -22,14 +22,14 @@ buildPythonPackage rec {
hash = "sha256-m77MY0IZ1AJkd4/Y7ltApvdF9y17Lgn92WZPYTCU9tA=";
};
passthru.optional-dependencies = {
optional-dependencies = {
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
mock
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "configargparse" ];

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ requests ];
passthru.optional-dependencies = {
optional-dependencies = {
avro = [
avro
fastavro
@ -49,7 +49,7 @@ buildPythonPackage rec {
pyflakes
pytestCheckHook
requests-mock
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "confluent_kafka" ];

View File

@ -62,7 +62,7 @@ buildPythonPackage rec {
werkzeug
];
passthru.optional-dependencies = {
optional-dependencies = {
flask = [
a2wsgi
flask
@ -75,7 +75,7 @@ buildPythonPackage rec {
pytest-aiohttp
pytestCheckHook
testfixtures
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "connexion" ];

View File

@ -35,7 +35,7 @@ buildPythonPackage rec {
lz4
];
passthru.optional-dependencies = {
optional-dependencies = {
extras = [
arrow
cloudpickle
@ -47,7 +47,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "construct" ];

View File

@ -47,7 +47,7 @@ buildPythonPackage rec {
dependencies = [ matplotlib ];
passthru.optional-dependencies = {
optional-dependencies = {
arviz = [ arviz ];
docs = [
arviz
@ -66,7 +66,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "corner" ];
nativeCheckInputs = [ pytestCheckHook ] ++ corner.passthru.optional-dependencies.test;
nativeCheckInputs = [ pytestCheckHook ] ++ corner.optional-dependencies.test;
# matplotlib.testing.exceptions.ImageComparisonFailure: images not close
disabledTests = [

View File

@ -52,7 +52,7 @@ buildPythonPackage rec {
types-toml
];
passthru.optional-dependencies = {
optional-dependencies = {
validation = [
jsonschema
lxml
@ -69,7 +69,7 @@ buildPythonPackage rec {
ddt
pytestCheckHook
xmldiff
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "cyclonedx" ];

View File

@ -38,7 +38,7 @@ buildPythonPackage rec {
traitlets
];
passthru.optional-dependencies = {
optional-dependencies = {
kerberos = [ pykerberos ];
jobqueue = [ sqlalchemy ];
local = [ sqlalchemy ];

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ sqlalchemy ];
passthru.optional-dependencies = {
optional-dependencies = {
postgresql = [ asyncpg ];
asyncpg = [ asyncpg ];
aiopg = [ aiopg ];

View File

@ -25,7 +25,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ];
passthru.optional-dependencies = {
optional-dependencies = {
timedelta = [ pytimeparse ];
yaml = [ pyyaml ];
};
@ -33,7 +33,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-mock
] ++ passthru.optional-dependencies.timedelta ++ passthru.optional-dependencies.yaml;
] ++ optional-dependencies.timedelta ++ optional-dependencies.yaml;
disabledTests =
[ ]

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
tcolorpy
] ++ typepy.optional-dependencies.datetime;
passthru.optional-dependencies = {
optional-dependencies = {
logging = [ loguru ];
};

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
tzlocal
];
passthru.optional-dependencies = {
optional-dependencies = {
calendars = [
hijri-converter
convertdate
@ -60,7 +60,7 @@ buildPythonPackage rec {
parsel
requests
ruamel-yaml
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues optional-dependencies);
preCheck = ''
export HOME="$TEMPDIR"

View File

@ -26,7 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ colorama ];
passthru.optional-dependencies = {
optional-dependencies = {
all = [ dill ];
};
@ -34,7 +34,7 @@ buildPythonPackage rec {
numpy
pandas
pytestCheckHook
] ++ passthru.optional-dependencies.all;
] ++ optional-dependencies.all;
pythonImportsCheck = [ "debuglater" ];

View File

@ -41,7 +41,7 @@ buildPythonPackage rec {
orjson
];
passthru.optional-dependencies = {
optional-dependencies = {
cli = [
clevercsv
click
@ -56,7 +56,7 @@ buildPythonPackage rec {
pytestCheckHook
python-dateutil
tomli-w
] ++ passthru.optional-dependencies.cli;
] ++ optional-dependencies.cli;
disabledTests = [
# not compatible with pydantic 2.x

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "defcon" ];
passthru.optional-dependencies = {
optional-dependencies = {
pens = [ fontpens ];
lxml = [ fonttools ] ++ fonttools.optional-dependencies.lxml;
};

View File

@ -29,7 +29,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
passthru.optional-dependencies = {
optional-dependencies = {
ujson = [ ujson ];
};

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six ];
passthru.optional-dependencies = {
optional-dependencies = {
aiohttp = [ aiohttp ];
pydantic = [ pydantic ];
flask = [ flask ];
@ -50,10 +50,10 @@ buildPythonPackage rec {
pytestCheckHook
scipy
]
++ passthru.optional-dependencies.aiohttp
++ passthru.optional-dependencies.pydantic
++ passthru.optional-dependencies.yaml
++ passthru.optional-dependencies.flask;
++ optional-dependencies.aiohttp
++ optional-dependencies.pydantic
++ optional-dependencies.yaml
++ optional-dependencies.flask;
pythonImportsCheck = [ "dependency_injector" ];

View File

@ -99,7 +99,7 @@ buildPythonPackage {
pydot # no idea why this is not in their setup.py
];
passthru.optional-dependencies = optional-dependencies;
optional-dependencies = optional-dependencies;
nativeCheckInputs = [
av

View File

@ -65,7 +65,7 @@ buildPythonPackage rec {
safetensors
];
passthru.optional-dependencies = {
optional-dependencies = {
flax = [
flax
jax
@ -102,7 +102,7 @@ buildPythonPackage rec {
sentencepiece
torchsde
transformers
] ++ passthru.optional-dependencies.torch;
] ++ optional-dependencies.torch;
preCheck =
let

View File

@ -40,7 +40,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ mpmath ];
passthru.optional-dependencies = {
optional-dependencies = {
exports = [
cython
numpy

View File

@ -37,7 +37,7 @@ buildPythonPackage rec {
websocket-client
];
passthru.optional-dependencies = {
optional-dependencies = {
ra = [
pycryptodome
pypng

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
dissect-util
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
python-lzo
zstandard

View File

@ -42,7 +42,7 @@ buildPythonPackage rec {
lark
];
passthru.optional-dependencies = {
optional-dependencies = {
c2 = [
flow-record
httpx
@ -68,7 +68,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-httpserver
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "dissect.cobaltstrike" ];

View File

@ -38,7 +38,7 @@ buildPythonPackage rec {
dissect-util
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
pycryptodome
rich

View File

@ -36,7 +36,7 @@ buildPythonPackage rec {
dissect-util
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
lz4
python-lzo

View File

@ -80,7 +80,7 @@ buildPythonPackage rec {
structlog
];
passthru.optional-dependencies = {
optional-dependencies = {
full = [
asn1crypto
dissect-btrfs
@ -102,12 +102,12 @@ buildPythonPackage rec {
yara-python
zstandard
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
yara = [ yara-python ] ++ passthru.optional-dependencies.full;
smb = [ impacket ] ++ passthru.optional-dependencies.full;
mqtt = [ paho-mqtt ] ++ passthru.optional-dependencies.full;
yara = [ yara-python ] ++ optional-dependencies.full;
smb = [ impacket ] ++ optional-dependencies.full;
mqtt = [ paho-mqtt ] ++ optional-dependencies.full;
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.full;
pythonImportsCheck = [ "dissect.target" ];

View File

@ -40,13 +40,13 @@ buildPythonPackage rec {
dependencies = [ djangorestframework ];
passthru.optional-dependencies.with_social = [ django-allauth ];
optional-dependencies.with_social = [ django-allauth ];
nativeCheckInputs = [
djangorestframework-simplejwt
responses
unittest-xml-reporting
] ++ passthru.optional-dependencies.with_social;
] ++ optional-dependencies.with_social;
preCheck = ''
# Test connects to graph.facebook.com

View File

@ -60,7 +60,7 @@ buildPythonPackage rec {
preBuild = "${python.interpreter} -m django compilemessages";
passthru.optional-dependencies = {
optional-dependencies = {
saml = [ python3-saml ];
mfa = [ qrcode ];
};
@ -71,7 +71,7 @@ buildPythonPackage rec {
pillow
pytestCheckHook
pytest-django
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = [
# Tests require network access

View File

@ -38,7 +38,7 @@ buildPythonPackage rec {
tablib
];
passthru.optional-dependencies = {
optional-dependencies = {
all = [ tablib ] ++ tablib.optional-dependencies.all;
cli = [ tablib ] ++ tablib.optional-dependencies.cli;
ods = [ tablib ] ++ tablib.optional-dependencies.ods;
@ -52,7 +52,7 @@ buildPythonPackage rec {
chardet
psycopg2
pytz
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (builtins.attrValues optional-dependencies);
checkPhase = ''
runHook preCheck

View File

@ -46,7 +46,7 @@ buildPythonPackage rec {
dependencies = [ django ];
passthru.optional-dependencies = {
optional-dependencies = {
all_filter_dependencies = [
bleach
docutils
@ -63,7 +63,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-django
pytestCheckHook
] ++ passthru.optional-dependencies.all_filter_dependencies;
] ++ optional-dependencies.all_filter_dependencies;
preCheck = ''
export DJANGO_SETTINGS_MODULE=django_markup.tests

View File

@ -35,14 +35,14 @@ buildPythonPackage rec {
pytz
];
passthru.optional-dependencies.taggit = [ django-taggit ];
optional-dependencies.taggit = [ django-taggit ];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
nativeCheckInputs = [
pytest-django
pytestCheckHook
] ++ passthru.optional-dependencies.taggit;
] ++ optional-dependencies.taggit;
# https://github.com/wagtail/django-modelcluster/issues/173
disabledTests = lib.optionals (lib.versionAtLeast django.version "4.2") [

Some files were not shown because too many files have changed in this diff Show More