treewide: prune pythonOlder 3.10/3.11

This is a post 3.10 removal cleanup.
This commit is contained in:
Martin Weinelt
2026-02-15 04:33:54 +01:00
parent 77ca080475
commit 8ea6bde88d
342 changed files with 161 additions and 1120 deletions
@@ -8,30 +8,26 @@
let
version = "3.2.2";
dependencies =
with python3.pkgs;
[
pyembroidery
inkex
wxpython
networkx
platformdirs
shapely
lxml
appdirs
numpy
jinja2
requests
colormath2
flask
fonttools
trimesh
scipy
diskcache
flask-cors
]
# Inkstitch uses the builtin tomllib instead when Python >=3.11
++ lib.optional (pythonOlder "3.11") tomli;
dependencies = with python3.pkgs; [
pyembroidery
inkex
wxpython
networkx
platformdirs
shapely
lxml
appdirs
numpy
jinja2
requests
colormath2
flask
fonttools
trimesh
scipy
diskcache
flask-cors
];
pyEnv = python3.withPackages (_: dependencies);
in
python3.pkgs.buildPythonApplication {
-2
View File
@@ -10,8 +10,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
version = "9.0.1";
pyproject = true;
disabled = python3.pythonOlder "3.11";
src = fetchFromGitHub {
owner = "languitar";
repo = "autosuspend";
+6 -9
View File
@@ -28,15 +28,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
pytest7CheckHook
];
dependencies =
with python3Packages;
[
click
cookiecutter
gitpython
typer
]
++ lib.optional (pythonOlder "3.11") python3Packages.toml;
dependencies = with python3Packages; [
click
cookiecutter
gitpython
typer
];
pythonImportsCheck = "cruft";
+6 -11
View File
@@ -35,17 +35,12 @@ python3Packages.buildPythonPackage (finalAttrs: {
--replace-fail "hatch-vcs==0.4.0" "hatch-vcs>=0.4.0"
'';
dependencies =
with python3Packages;
(
[
colorlog
jinja2
lxml
pygments
]
++ lib.optionals (pythonOlder "3.11") [ tomli ]
);
dependencies = with python3Packages; [
colorlog
jinja2
lxml
pygments
];
pythonImportsCheck = [
"gcovr"
-2
View File
@@ -9,8 +9,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
version = "0.1.12";
pyproject = true;
disabled = python3Packages.pythonOlder "3.11";
src = fetchFromGitHub {
owner = "ratoaq2";
repo = "pgsrip";
-5
View File
@@ -2,7 +2,6 @@
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
findpython,
installShellFiles,
@@ -26,7 +25,6 @@
trove-classifiers,
virtualenv,
xattr,
tomli,
deepdiff,
pytestCheckHook,
httpretty,
@@ -85,9 +83,6 @@ buildPythonPackage rec {
++ lib.optionals (stdenv.hostPlatform.isDarwin) [
xattr
]
++ lib.optionals (pythonOlder "3.11") [
tomli
]
++ cachecontrol.optional-dependencies.filecache
++ pbs-installer.optional-dependencies.download
++ pbs-installer.optional-dependencies.install;
+1 -2
View File
@@ -94,8 +94,7 @@ python3Packages.buildPythonApplication rec {
semver
]
++ sqlalchemy.optional-dependencies.asyncio
++ httpx.optional-dependencies.http2
++ python-socks.optional-dependencies.asyncio;
++ httpx.optional-dependencies.http2;
optional-dependencies = with python3Packages; {
aws = [
-3
View File
@@ -46,9 +46,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
python-box
tomli-w
]
++ lib.optionals (pythonOlder "3.11") [
tomli
]
++ lib.optional withInotify inotify;
nativeCheckInputs = with python3.pkgs; [
+8 -13
View File
@@ -29,19 +29,14 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
build-system = with python3.pkgs; [ setuptools ];
dependencies =
with python3.pkgs;
[
attrs
click
click-log
jinja2
markdown-it-py
requests
]
++ lib.optionals (python3.pythonOlder "3.11") [
tomli
];
dependencies = with python3.pkgs; [
attrs
click
click-log
jinja2
markdown-it-py
requests
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
-2
View File
@@ -11,8 +11,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
version = "0.11.4";
pyproject = true;
disabled = python3.pythonOlder "3.11";
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-LfJVYdViI88L/DtfUD1znBHUiLQb7MKhyJ2jhFCW4+Y=";
+16 -19
View File
@@ -24,25 +24,22 @@ python3Packages.buildPythonApplication (finalAttrs: {
hatchling
];
dependencies =
with python3Packages;
[
click
mysql-connector
pytimeparse2
pymysql
pymysqlsa
simplejson
sqlalchemy
sqlalchemy-utils
tqdm
tabulate
unidecode
packaging
mysql80
python-dateutil
]
++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
dependencies = with python3Packages; [
click
mysql-connector
pytimeparse2
pymysql
pymysqlsa
simplejson
sqlalchemy
sqlalchemy-utils
tqdm
tabulate
unidecode
packaging
mysql80
python-dateutil
];
pythonRelaxDeps = [
"mysql-connector-python"
@@ -794,11 +794,6 @@ stdenv.mkDerivation (finalAttrs: {
inherit src;
name = "python${pythonVersion}-${version}-doc";
postPatch = lib.optionalString (pythonAtLeast "3.9" && pythonOlder "3.11") ''
substituteInPlace Doc/tools/extensions/pyspecific.py \
--replace-fail "from sphinx.util import status_iterator" "from sphinx.util.display import status_iterator"
'';
dontConfigure = true;
dontBuild = true;
@@ -82,17 +82,12 @@ let
"installer"
];
isBootstrapPackage' = flip elem (
[
"build"
"packaging"
"pyproject-hooks"
"wheel"
]
++ optionals (python.pythonOlder "3.11") [
"tomli"
]
);
isBootstrapPackage' = flip elem [
"build"
"packaging"
"pyproject-hooks"
"wheel"
];
isSetuptoolsDependency' = flip elem [
"setuptools"
@@ -4,7 +4,6 @@
buildPythonPackage,
fetchFromGitHub,
geopy,
pythonOlder,
setuptools,
}:
@@ -13,8 +12,6 @@ buildPythonPackage rec {
version = "0.6.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
@@ -13,7 +13,6 @@
pyicu,
pytestCheckHook,
python-slugify,
pythonOlder,
pytimeparse,
setuptools,
}:
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pyvex,
setuptools,
typing-extensions,
@@ -13,8 +12,6 @@ buildPythonPackage rec {
version = "9.2.154";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "angr";
repo = "ailment";
@@ -3,7 +3,6 @@
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
@@ -12,8 +11,6 @@ buildPythonPackage rec {
version = "0.7.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "aioairzone-cloud";
@@ -11,7 +11,6 @@
pytestCheckHook,
python-engineio,
python-socketio,
pythonOlder,
websockets,
yarl,
}:
@@ -21,8 +20,6 @@ buildPythonPackage rec {
version = "2025.02.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bachya";
repo = "aioambient";
@@ -45,8 +45,7 @@ buildPythonPackage (finalAttrs: {
httpx-socks
python-socks
rencode
]
++ python-socks.optional-dependencies.asyncio;
];
nativeCheckInputs = [
proxy-py
@@ -6,7 +6,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
@@ -1,7 +1,6 @@
{
lib,
aiodns,
async-timeout,
buildPythonPackage,
cached-ipaddress,
fetchFromGitHub,
@@ -12,7 +11,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
@@ -35,9 +33,6 @@ buildPythonPackage rec {
ifaddr
netifaces
pyroute2
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [
@@ -10,7 +10,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
}:
@@ -19,8 +18,6 @@ buildPythonPackage rec {
version = "1.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "jpbede";
repo = "aioelectricitymaps";
@@ -10,7 +10,6 @@
pytest-aiohttp,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
voluptuous,
typing-extensions,
yarl,
@@ -21,8 +20,6 @@ buildPythonPackage (finalAttrs: {
version = "2026.01.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bachya";
repo = "aioguardian";
@@ -23,8 +23,7 @@ buildPythonPackage rec {
dependencies = [
aiohttp
python-socks
]
++ python-socks.optional-dependencies.asyncio;
];
# Checks needs internet access
doCheck = false;
@@ -95,9 +95,6 @@ buildPythonPackage rec {
propcache
yarl
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
]
++ optional-dependencies.speedups;
optional-dependencies.speedups = [
@@ -1,13 +1,11 @@
{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pytest-aiohttp,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
@@ -25,8 +23,6 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ];
optional-dependencies = {
aiohttp = [ aiohttp ];
};
@@ -5,7 +5,6 @@
buildPythonPackage,
fetchFromGitHub,
incremental,
pythonOlder,
pytest-asyncio,
pytestCheckHook,
setuptools,
@@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "2.0.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "timmo001";
repo = "aiolyric";
@@ -2,14 +2,12 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
# dependencies
python-memcached,
typing-extensions,
}:
buildPythonPackage rec {
@@ -26,7 +24,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [ python-memcached ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
dependencies = [ python-memcached ];
doCheck = false; # executes memcached in docker
@@ -6,7 +6,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "4.3.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aionut";
@@ -3,7 +3,6 @@
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
@@ -12,8 +11,6 @@ buildPythonPackage rec {
version = "0.3.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiooncue";
@@ -9,7 +9,6 @@
pytest-aiohttp,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
@@ -17,8 +16,6 @@ buildPythonPackage rec {
version = "0.6.21";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aioopenexchangerates";
@@ -5,7 +5,6 @@
buildPythonPackage,
fetchFromGitHub,
pillow,
pythonOlder,
setuptools,
}:
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "3.1.5";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioslimproto";
@@ -7,7 +7,6 @@
brotli,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
@@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "0.1.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "music-assistant";
repo = "aiosonos";
@@ -8,7 +8,6 @@
pytest-asyncio,
pytest-postgresql,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
sphinx-rtd-theme,
@@ -10,7 +10,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
@@ -20,8 +19,6 @@ buildPythonPackage rec {
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "jpbede";
repo = "aiotankerkoenig";
@@ -7,7 +7,6 @@
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
pythonOlder,
typer,
}:
@@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "0.6.6";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiovlc";
@@ -8,7 +8,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
@@ -18,8 +17,6 @@ buildPythonPackage rec {
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "joostlek";
repo = "python-waqi";
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
aiohttp,
}:
@@ -12,8 +11,6 @@ buildPythonPackage rec {
version = "0.7.5";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aiowebostv";
@@ -8,7 +8,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
@@ -18,8 +17,6 @@ buildPythonPackage rec {
version = "3.1.6";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "joostlek";
repo = "python-withings";
@@ -10,7 +10,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
@@ -20,8 +19,6 @@ buildPythonPackage rec {
version = "0.9.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "airgradienthq";
repo = "python-airgradient";
@@ -7,7 +7,6 @@
pyopenssl,
pyserial,
pytestCheckHook,
pythonOlder,
pyusb,
setuptools-scm,
}:
@@ -8,7 +8,6 @@
numpydoc,
pytest,
scipy,
pythonOlder,
pytestCheckHook,
}:
@@ -2,7 +2,6 @@
lib,
fetchPypi,
buildPythonPackage,
pythonOlder,
attrs,
pluggy,
six,
@@ -24,7 +24,6 @@
pycparser,
pyformlang,
pydemumble,
pythonOlder,
pyvex,
rich,
rpyc,
@@ -41,8 +40,6 @@ buildPythonPackage rec {
version = "9.2.154";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "angr";
repo = "angr";
@@ -51,9 +51,6 @@ buildPythonPackage rec {
]
++ lib.optionals (pythonOlder "3.13") [
typing-extensions
]
++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
];
optional-dependencies = {
@@ -5,7 +5,6 @@
poetry-core,
aiohttp,
aiohttp-retry,
pythonOlder,
pyjwt,
}:
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "1.1.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "tjhorner";
repo = "python-weatherkit";
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
pythonAtLeast,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
@@ -19,8 +18,6 @@ buildPythonPackage rec {
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "elupus";
repo = "arcam_fmj";
@@ -2,10 +2,8 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
packaging,
tomli,
pytestCheckHook,
pip,
}:
@@ -25,10 +23,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools
packaging
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
];
nativeCheckInputs = [
pytestCheckHook
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
python,
fetchPypi,
@@ -14,7 +13,7 @@ buildPythonPackage rec {
version = "0.8.3";
format = "wheel";
disabled = pythonOlder "3.11" || pythonAtLeast "3.15";
disabled = pythonAtLeast "3.15";
src =
let
@@ -2,9 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
typing-extensions,
pip,
pylint,
pytestCheckHook,
@@ -24,8 +22,6 @@ buildPythonPackage (finalAttrs: {
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
nativeCheckInputs = [
pip
pytestCheckHook
@@ -2,7 +2,6 @@
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
# build time
stdenv,
@@ -58,8 +57,6 @@ buildPythonPackage rec {
version = "7.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "astropy";
repo = "astropy";
@@ -1,11 +1,9 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
setuptools,
typing-extensions,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
@@ -35,8 +33,6 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-asyncio,
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "0.4.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "twisteroidambassador";
repo = "async_stagger";
@@ -2,12 +2,10 @@
lib,
fetchPypi,
buildPythonPackage,
async-timeout,
cython,
libpq,
uvloop,
postgresql,
pythonOlder,
pytest-xdist,
pytestCheckHook,
setuptools,
@@ -29,10 +27,6 @@ buildPythonPackage rec {
setuptools
];
# required for compatibility with Python versions older than 3.11
# see https://github.com/MagicStack/asyncpg/blob/v0.29.0/asyncpg/_asyncio_compat.py#L13
dependencies = lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [
libpq.pg_config
uvloop
@@ -31,8 +31,7 @@ buildPythonPackage rec {
python-socks
tldextract
whodap
]
++ python-socks.optional-dependencies.asyncio;
];
nativeCheckInputs = [
pytest-asyncio
@@ -2,7 +2,6 @@
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
nix-update-script,
# build-system
@@ -5,8 +5,6 @@
hatchling,
pyflakes,
pytestCheckHook,
pythonOlder,
tomli,
}:
buildPythonPackage rec {
pname = "autoflake";
@@ -20,7 +18,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ pyflakes ] ++ lib.optional (pythonOlder "3.11") tomli;
propagatedBuildInputs = [ pyflakes ];
nativeCheckInputs = [ pytestCheckHook ];
@@ -5,9 +5,7 @@
glibcLocales,
pycodestyle,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
}:
buildPythonPackage rec {
@@ -24,7 +22,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
propagatedBuildInputs = [ pycodestyle ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
propagatedBuildInputs = [ pycodestyle ];
nativeCheckInputs = [
glibcLocales
@@ -6,7 +6,6 @@
azure-common,
azure-mgmt-core,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "4.1.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "azure_mgmt_applicationinsights";
inherit version;
@@ -5,7 +5,6 @@
buildPythonPackage,
fetchPypi,
isodate,
pythonOlder,
setuptools,
}:
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "azure_mgmt_iothub";
inherit version;
@@ -5,7 +5,6 @@
buildPythonPackage,
fetchPypi,
isodate,
pythonOlder,
setuptools,
}:
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "azure_mgmt_recoveryservices";
inherit version;
@@ -7,7 +7,6 @@
pytest-asyncio,
pytest-timeout,
pytestCheckHook,
pythonOlder,
setuptools,
voluptuous,
zigpy,
@@ -53,7 +53,6 @@
python-dateutil,
python-json-logger,
python-multipart,
pythonOlder,
pyyaml,
questionary,
rich,
@@ -62,7 +61,6 @@
simple-di,
starlette,
tomli-w,
tomli,
tritonclient,
uv,
uvicorn,
@@ -205,8 +203,7 @@ buildPythonPackage {
uv
uvicorn
watchfiles
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
];
inherit optional-dependencies;
@@ -4,7 +4,6 @@
buildPythonPackage,
fetchPypi,
fetchpatch,
pythonOlder,
pytestCheckHook,
aiohttp,
click,
@@ -19,8 +18,6 @@
parameterized,
platformdirs,
tokenize-rt,
tomli,
typing-extensions,
uvloop,
}:
@@ -64,10 +61,6 @@ buildPythonPackage rec {
packaging
pathspec
platformdirs
]
++ lib.optionals (pythonOlder "3.11") [
tomli
typing-extensions
];
optional-dependencies = {
@@ -9,7 +9,6 @@
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
pythonOlder,
stdenv,
}:
@@ -16,7 +16,6 @@
pyobjc-framework-CoreBluetooth,
pyobjc-framework-libdispatch,
typing-extensions,
async-timeout,
pytest-asyncio,
pytest-cov-stub,
@@ -61,9 +60,6 @@ buildPythonPackage rec {
]
++ lib.optionals (pythonOlder "3.12") [
typing-extensions
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
pytz,
@@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "1.3.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bluecurrent";
repo = "HomeAssistantAPI";
@@ -7,7 +7,6 @@
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
}:
@@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluemaestro-ble";
@@ -1,6 +1,5 @@
{
lib,
async-timeout,
bluetooth-adapters,
btsocket,
buildPythonPackage,
@@ -10,7 +9,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
usb-devices,
}:
@@ -33,9 +31,6 @@ buildPythonPackage rec {
btsocket
pyric
usb-devices
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [
@@ -6,7 +6,6 @@
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
}:
@@ -15,8 +14,6 @@ buildPythonPackage rec {
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluetooth-sensor-state-data";
@@ -4,14 +4,12 @@
callPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
build,
coloredlogs,
packaging,
pip,
toml,
urllib3,
}:
@@ -43,8 +41,7 @@ buildPythonPackage rec {
packaging
pip
urllib3
]
++ lib.optionals (pythonOlder "3.11") [ toml ];
];
pythonImportsCheck = [
"bork"
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
jupyter-packaging,
jupyterlab,
@@ -12,9 +12,7 @@
pytest-rerunfailures,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
virtualenv,
wheel,
}:
@@ -38,8 +36,7 @@ buildPythonPackage rec {
dependencies = [
packaging
pyproject-hooks
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
];
# We need to disable tests because this package is part of the bootstrap chain
# and its test dependencies cannot be built yet when this is being built.
@@ -2,7 +2,6 @@
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
cryptography,
jinja2,
librouteros,
@@ -11,7 +10,6 @@
passlib,
pyyaml,
requests,
rtoml,
setuptools,
tomlkit,
pytestCheckHook,
@@ -44,8 +42,7 @@ buildPythonPackage {
requests
tomlkit
librouteros
]
++ lib.optionals (pythonOlder "3.11") [ rtoml ];
];
pythonImportsCheck = [ "bundlewrap" ];
@@ -4,7 +4,6 @@
buildPythonPackage,
cbor2,
fetchFromGitHub,
exceptiongroup,
hatchling,
hatch-vcs,
hypothesis,
@@ -16,7 +15,6 @@
pytest-xdist,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pyyaml,
tomlkit,
typing-extensions,
@@ -43,9 +41,6 @@ buildPythonPackage rec {
dependencies = [
attrs
typing-extensions
]
++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
];
nativeCheckInputs = [
@@ -5,7 +5,6 @@
hypothesis,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
setuptools,
withCExtensions ? true,
@@ -8,8 +8,6 @@
pep517,
pytestCheckHook,
setuptools,
tomli,
pythonOlder,
}:
buildPythonPackage rec {
@@ -30,8 +28,7 @@ buildPythonPackage rec {
build
pep517
setuptools
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
];
nativeCheckInputs = [
git
@@ -12,7 +12,6 @@
pyleri,
pyopenssl,
pytestCheckHook,
pythonOlder,
requests,
timeout-decorator,
xmltodict,
@@ -6,7 +6,6 @@
fetchFromGitHub,
pysmt,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
z3-solver,
@@ -17,8 +16,6 @@ buildPythonPackage rec {
version = "9.2.154";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "angr";
repo = "claripy";
@@ -8,7 +8,6 @@
pefile,
pyelftools,
pytestCheckHook,
pythonOlder,
pyvex,
setuptools,
sortedcontainers,
@@ -32,8 +31,6 @@ buildPythonPackage rec {
inherit version;
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "angr";
repo = "cle";
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build dependencies
poetry-core,
@@ -25,8 +24,6 @@ buildPythonPackage rec {
version = "0.4.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "ratoaq2";
repo = "cleanit";
@@ -15,7 +15,6 @@
pytest-mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
tabulate,
}:
@@ -6,10 +6,6 @@
# build-system
flit-core,
# dependencies
pythonOlder,
typing-extensions,
# optional-dependencies
azure-storage-blob,
azure-storage-file-datalake,
@@ -50,10 +46,6 @@ buildPythonPackage rec {
build-system = [ flit-core ];
dependencies = lib.optionals (pythonOlder "3.11") [
typing-extensions
];
optional-dependencies = {
all = optional-dependencies.azure ++ optional-dependencies.gs ++ optional-dependencies.s3;
azure = [
@@ -2,7 +2,6 @@
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
hatchling,
hatch-vcs,
pyparsing,
@@ -27,8 +27,7 @@ let
nativeBuildInputs = [
setuptools
versioneer
]
++ versioneer.optional-dependencies.toml;
];
# would create dependency loop with twisted
doCheck = false;
@@ -29,9 +29,6 @@ buildPythonPackage rec {
beartype
pydantic
rich
]
++ lib.optionals (python.pythonOlder "3.11") [
tomli
];
meta = {
@@ -8,9 +8,7 @@
hypothesis,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
}:
buildPythonPackage rec {
@@ -27,12 +25,6 @@ buildPythonPackage rec {
build-system = [ setuptools ];
optional-dependencies = {
toml = lib.optionals (pythonOlder "3.11") [
tomli
];
};
nativeCheckInputs = [
flaky
hypothesis
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools-scm,
setuptools,
toml,
@@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "1.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "ctypesgen";
repo = "ctypesgen";
@@ -10,10 +10,8 @@
# dependencies
filelock,
packaging,
tomli,
distutils,
pythonOlder,
ncurses,
patchelf,
dmgbuild,
@@ -65,9 +63,6 @@ buildPythonPackage rec {
packaging
setuptools
]
++ lib.optionals (pythonOlder "3.11") [
tomli
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
dmgbuild
];
@@ -6,7 +6,6 @@
pytestCheckHook,
python-dotenv,
pythonAtLeast,
pythonOlder,
pytimeparse,
pyyaml,
setuptools,
@@ -37,9 +37,6 @@
distro,
# win
colorama,
# python-version-dependent
pythonOlder,
typing-extensions,
# tests
pytest-retry,
pytest-xdist,
@@ -95,8 +92,7 @@ buildPythonPackage (finalAttrs: {
annexremote
looseversion
]
++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ];
downloaders = [
boto3
keyrings-alt
@@ -4,7 +4,6 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
nix-update-script,
setuptools,
paup-cli,
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatchling,
uv-dynamic-versioning,
pytestCheckHook,
@@ -8,7 +8,6 @@
pytest-cov-stub,
pytest-django,
pytestCheckHook,
pythonOlder,
hatchling,
hatch-vcs,
}:
@@ -18,8 +17,6 @@ buildPythonPackage rec {
version = "0.19.19";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "deschler";
repo = "django-modeltranslation";
@@ -10,8 +10,6 @@
pytest-mypy-plugins,
oracledb,
pytestCheckHook,
pythonOlder,
tomli,
types-pytz,
types-pyyaml,
types-redis,
@@ -38,8 +36,7 @@ buildPythonPackage rec {
types-pytz
types-pyyaml
typing-extensions
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
];
optional-dependencies = {
compatible-mypy = [ mypy ];
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
charset-normalizer,
@@ -5,7 +5,6 @@
flit-core,
pillow,
python,
pythonOlder,
}:
# Note: this package is used to build LLVMs documentation, which is part of the Darwin stdenv.
@@ -1,11 +1,9 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
hatchling,
packaging,
tomli,
pyyaml,
pytestCheckHook,
}:
@@ -24,7 +22,7 @@ buildPythonPackage rec {
build-system = [ hatchling ];
dependencies = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
dependencies = [ packaging ];
optional-dependencies = {
# FIXME pipenv = [ pipenv ];
@@ -24,7 +24,6 @@
psycopg2,
pytest-django,
pytestCheckHook,
pythonOlder,
pyyaml,
setuptools,
uritemplate,
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
@@ -11,8 +10,6 @@ buildPythonPackage rec {
version = "1.0.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "ChandlerSystems";
repo = "dropmqttapi";

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