python3Packages.aiohttp: 3.13.0 -> 3.13.1 (#453680)

This commit is contained in:
Martin Weinelt
2025-10-20 13:08:09 +00:00
committed by GitHub
3 changed files with 70 additions and 7 deletions
@@ -21,11 +21,11 @@
aiosignal,
async-timeout,
attrs,
backports-zstd,
frozenlist,
multidict,
propcache,
yarl,
zstandard,
# optional dependencies
aiodns,
@@ -51,14 +51,14 @@
buildPythonPackage rec {
pname = "aiohttp";
version = "3.13.0";
version = "3.13.1";
pyproject = true;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiohttp";
tag = "v${version}";
hash = "sha256-X4igOjBeAGDfUGwZAsjUWOWt3EFt53QSuUcdJ/5vBVU=";
hash = "sha256-gjFNGHfbajktxApj1RfUdMB4FuD8cFc6ueHZsRbV/uU=";
};
patches = lib.optionals (!lib.meta.availableOn stdenv.hostPlatform isa-l) [
@@ -94,21 +94,21 @@ buildPythonPackage rec {
dependencies = [
aiohappyeyeballs
aiosignal
async-timeout
attrs
frozenlist
multidict
propcache
yarl
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
]
++ optional-dependencies.speedups;
optional-dependencies.speedups = [
aiodns
backports-zstd
(if isPyPy then brotlicffi else brotli)
]
++ lib.optionals (pythonOlder "3.14") [
zstandard
];
nativeCheckInputs = [
@@ -0,0 +1,55 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
setuptools,
zstd,
}:
buildPythonPackage rec {
pname = "backports-zstd";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rogdham";
repo = "backports.zstd";
tag = "v${version}";
fetchSubmodules = true;
hash = "sha256-MRtj40vjCPtV9/RDgun/APzva4lv+TnXeBKD9RNlkII=";
};
postPatch = ''
# need to preserve $PYTHONPATH when calling sys.executable
substituteInPlace tests/test/support/script_helper.py \
--replace-fail "return __cached_interp_requires_environment" "return True"
'';
build-system = [ setuptools ];
pypaBuildFlags = [ "--config-setting=--build-option=--system-zstd" ];
buildInputs = [ zstd ];
pythonImportsCheck = [ "backports.zstd" ];
nativeCheckInputs = [
pytestCheckHook
];
enabledTestPaths = [ "tests" ];
disabledTestPaths = [
# sandbox doesn't allow setting SUID bit
"tests/test/test_tarfile.py::TestExtractionFilters::test_modes"
];
meta = {
changelog = "https://github.com/rogdham/backports.zstd/blob/${src.tag}/CHANGELOG.md";
description = "Backport of compression.zstd";
homepage = "https://github.com/rogdham/backports.zstd";
license = lib.licenses.psfl;
maintainers = [ lib.maintainers.dotlambda ];
};
}
+8
View File
@@ -1682,6 +1682,14 @@ self: super: with self; {
backports-tarfile = callPackage ../development/python-modules/backports-tarfile { };
backports-zstd =
if pythonAtLeast "3.14" then
null
else
callPackage ../development/python-modules/backports-zstd {
inherit (pkgs) zstd;
};
backrefs = callPackage ../development/python-modules/backrefs { };
backtesting = callPackage ../development/python-modules/backtesting { };