[python-updates] minor updates (2024-09-29) (#345326)

This commit is contained in:
Martin Weinelt 2024-10-13 11:13:07 +02:00 committed by GitHub
commit bb02d6c33d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
665 changed files with 3395 additions and 3094 deletions

View File

@ -0,0 +1,10 @@
diff --git a/src/pretix/testutils/mock.py b/src/pretix/testutils/mock.py
index 66ee3fb52..9d9ba02bd 100644
--- a/src/pretix/testutils/mock.py
+++ b/src/pretix/testutils/mock.py
@@ -38,4 +38,4 @@ def mocker_context():
def get_redis_connection(alias="default", write=True):
- return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0)))
+ return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0), server_type="redis"))

View File

@ -87,6 +87,9 @@ python.pkgs.buildPythonApplication rec {
# Discover pretix.plugin entrypoints during build and add them into # Discover pretix.plugin entrypoints during build and add them into
# INSTALLED_APPS, so that their static files are collected. # INSTALLED_APPS, so that their static files are collected.
./plugin-build.patch ./plugin-build.patch
# TypeError: FakeServer.get_server() missing 1 required positional argument: 'server_type'
./fakeredis-0.25-compat.patch
]; ];
pythonRelaxDeps = [ pythonRelaxDeps = [
@ -98,6 +101,7 @@ python.pkgs.buildPythonApplication rec {
"protobuf" "protobuf"
"pyjwt" "pyjwt"
"python-bidi" "python-bidi"
"redis"
"requests" "requests"
"sentry-sdk" "sentry-sdk"
]; ];

View File

@ -7,18 +7,18 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "selenium-manager"; pname = "selenium-manager";
version = "4.24.0"; version = "4.25.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "SeleniumHQ"; owner = "SeleniumHQ";
repo = "selenium"; repo = "selenium";
rev = "selenium-${version}"; rev = "selenium-${version}";
hash = "sha256-AsQr9kGv2dxkiFzptDA0D27OXZjYj7oDKz2oEQ2qW7s="; hash = "sha256-ykZdL2Rn+bU8do3e9zf9pJtInBNRGLcXi5pD1vm7OJY=";
}; };
sourceRoot = "${src.name}/rust"; sourceRoot = "${src.name}/rust";
cargoHash = "sha256-mirEeOi6CfKjb8ZuqardJeYy9EGnpsw5fkUw7umhkro="; cargoHash = "sha256-8is7lQ+V1Xf+Aturg836jRMoHIJzDoSVJT5ZOd8W51k=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration darwin.apple_sdk.frameworks.SystemConfiguration

View File

@ -20,10 +20,10 @@
sourceVersion = { sourceVersion = {
major = "3"; major = "3";
minor = "12"; minor = "12";
patch = "6"; patch = "7";
suffix = ""; suffix = "";
}; };
hash = "sha256-GZllgpjPL7g33/7Y/zwDPvDJjvIM9zxdX2a+1auJaXw="; hash = "sha256-JIh7kuKv1KKsYCQZrUtZY3L2esmwdxkPRZq6OQ+vVVA=";
}; };
}; };

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchurl
, fetchpatch2
, glib , glib
, flex , flex
, bison , bison
@ -60,6 +61,11 @@ stdenv.mkDerivation (finalAttrs: {
src = ./absolute_shlib_path.patch; src = ./absolute_shlib_path.patch;
inherit nixStoreDir; inherit nixStoreDir;
}) })
(fetchpatch2 {
name = "setuptools-74.0-compat.patch";
url = "https://github.com/GNOME/gobject-introspection/commit/a2139dba59eac283a7f543ed737f038deebddc19.patch";
hash = "sha256-n++wpQuJhAEYtcu8LZDC4+Tx1MYuFIMysFgrvz68jWU=";
})
] ++ lib.optionals x11Support [ ] ++ lib.optionals x11Support [
# Hardcode the cairo shared library path in the Cairo gir shipped with this package. # Hardcode the cairo shared library path in the Cairo gir shipped with this package.
# https://github.com/NixOS/nixpkgs/issues/34080 # https://github.com/NixOS/nixpkgs/issues/34080

View File

@ -11,12 +11,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "a2wsgi"; pname = "a2wsgi";
version = "1.10.4"; version = "1.10.7";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-UOgaxVqmCfosZm5CuswlxCTIiEzmBy8afpAhFLfuXWM="; hash = "sha256-zkYv9+HarAvFcYPG+ADwmnHCp6mN3VzeyhSePqvzM44=";
}; };
nativeBuildInputs = [ pdm-backend ]; nativeBuildInputs = [ pdm-backend ];

View File

@ -1,9 +1,9 @@
{ {
buildPythonPackage,
lib, lib,
buildPythonPackage,
fetchPypi, fetchPypi,
setuptools, setuptools,
six, pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -11,21 +11,24 @@ buildPythonPackage rec {
version = "2.1.0"; version = "2.1.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-eCB5DvuzFnOc3otOGTVyQ/w2CKFSAkKIUT3ZaNfZWf8="; hash = "sha256-eCB5DvuzFnOc3otOGTVyQ/w2CKFSAkKIUT3ZaNfZWf8=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ six ];
# checks use bazel; should be revisited # checks use bazel; should be revisited
doCheck = false; doCheck = false;
pythonImportsCheck = [ "absl" ];
meta = { meta = {
description = "Abseil Python Common Libraries"; description = "Abseil Python Common Libraries";
homepage = "https://github.com/abseil/abseil-py"; homepage = "https://github.com/abseil/abseil-py";
changelog = "https://github.com/abseil/abseil-py/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = [ ]; maintainers = [ ];
}; };

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aerosandbox"; pname = "aerosandbox";
version = "4.2.5"; version = "4.2.6";
format = "wheel"; format = "wheel";
src = fetchPypi { src = fetchPypi {
@ -25,7 +25,7 @@ buildPythonPackage rec {
python = "py3"; python = "py3";
dist = "py3"; dist = "py3";
hash = "sha256-9WxeXmcOZpKpNn8r6REudQlDRXavym52tvKajYJIfXA="; hash = "sha256-jS1Eh/+2WXZkQC4pt1Rwvw7plJC1NFFC08gqzEyGir4=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -25,7 +25,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aesara"; pname = "aesara";
version = "2.9.3"; version = "2.9.4";
pyproject = true; pyproject = true;
# Python 3.12 is not supported: https://github.com/aesara-devs/aesara/issues/1520 # Python 3.12 is not supported: https://github.com/aesara-devs/aesara/issues/1520
@ -35,7 +35,7 @@ buildPythonPackage rec {
owner = "aesara-devs"; owner = "aesara-devs";
repo = "aesara"; repo = "aesara";
rev = "refs/tags/rel-${version}"; rev = "refs/tags/rel-${version}";
hash = "sha256-aO0+O7Ts9phsV4ghunNolxfAruGBbC+tHjVkmFedcCI="; hash = "sha256-V34uP50TfH6cLU7nWOx+8oXY1QawtaoIaKQpbLnz7eo=";
}; };
build-system = [ build-system = [

View File

@ -5,6 +5,7 @@
grpcio, grpcio,
protobuf, protobuf,
pytest-asyncio, pytest-asyncio,
pytest-cov-stub,
pytest-mock, pytest-mock,
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
@ -29,22 +30,23 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace-fail "setuptools_scm==6.3.2" "setuptools_scm" --replace-fail "setuptools_scm==6.3.2" "setuptools_scm"
substituteInPlace setup.cfg \
--replace-fail "--cov=aetcd" ""
''; '';
nativeBuildInputs = [ pythonRelaxDeps = [ "protobuf" ];
build-system = [
setuptools setuptools
setuptools-scm setuptools-scm
]; ];
propagatedBuildInputs = [ dependencies = [
grpcio grpcio
protobuf protobuf
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
pytest-cov-stub
pytest-mock pytest-mock
pytestCheckHook pytestCheckHook
]; ];

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiobotocore"; pname = "aiobotocore";
version = "2.13.1"; version = "2.15.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -30,18 +30,16 @@ buildPythonPackage rec {
owner = "aio-libs"; owner = "aio-libs";
repo = "aiobotocore"; repo = "aiobotocore";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-tSxCRms/YstYXWCJWirzhf87ZH4WUav/n7QfMvBwj2s="; hash = "sha256-kPSkvvXBBwnWrdf0jmDNiTG6T1qpm5pNcPDHpnMFdmc=";
}; };
# Relax version constraints: aiobotocore works with newer botocore versions # Relax version constraints: aiobotocore works with newer botocore versions
# the pinning used to match some `extras_require` we're not using. # the pinning used to match some `extras_require` we're not using.
postPatch = '' pythonRelaxDeps = [ "botocore" ];
sed -i "s/'botocore>=.*'/'botocore'/" setup.py
'';
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ dependencies = [
aiohttp aiohttp
aioitertools aioitertools
botocore botocore

View File

@ -39,6 +39,10 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [ "aiodhcpwatcher" ]; pythonImportsCheck = [ "aiodhcpwatcher" ];
meta = with lib; { meta = with lib; {

View File

@ -8,16 +8,17 @@
fetchFromGitHub, fetchFromGitHub,
ifaddr, ifaddr,
netifaces, netifaces,
poetry-core,
pyroute2, pyroute2,
pytest-asyncio, pytest-asyncio,
pytest-cov-stub,
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiodiscover"; pname = "aiodiscover";
version = "2.1.0"; version = "2.2.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -26,12 +27,12 @@ buildPythonPackage rec {
owner = "bdraco"; owner = "bdraco";
repo = "aiodiscover"; repo = "aiodiscover";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-+DcROb6jR0veD3oSKgyJHUi1VtCT54yBKvVqir5y+R4="; hash = "sha256-A12YeNIm9Pv4zpzaejTk8VvLzKLHxZV2EzVpchLX1k8=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ poetry-core ];
propagatedBuildInputs = [ dependencies = [
async-timeout async-timeout
aiodns aiodns
cached-ipaddress cached-ipaddress
@ -43,6 +44,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
pytest-cov-stub
pytestCheckHook pytestCheckHook
]; ];

View File

@ -1,6 +1,6 @@
{ {
stdenv,
lib, lib,
stdenv,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
hatchling, hatchling,
@ -11,19 +11,19 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiofiles"; pname = "aiofiles";
version = "23.2.1"; version = "24.1.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Tinche"; owner = "Tinche";
repo = pname; repo = "aiofiles";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM="; hash = "sha256-uDKDMSNbMIlAaifpEBh1+q2bdZNUia8pPb30IOIgOAE=";
}; };
nativeBuildInputs = [ hatchling ]; build-system = [ hatchling ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@ -45,6 +45,8 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "File support for asyncio"; description = "File support for asyncio";
homepage = "https://github.com/Tinche/aiofiles"; homepage = "https://github.com/Tinche/aiofiles";
license = with licenses; [ asl20 ]; changelog = "https://github.com/Tinche/aiofiles/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
}; };
} }

View File

@ -28,7 +28,7 @@ buildPythonPackage rec {
aiohttp aiohttp
attrs attrs
python-socks python-socks
]; ] ++ python-socks.optional-dependencies.asyncio;
# Checks needs internet access # Checks needs internet access
doCheck = false; doCheck = false;

View File

@ -39,7 +39,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp"; pname = "aiohttp";
version = "3.10.7"; version = "3.10.8";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -48,7 +48,7 @@ buildPythonPackage rec {
owner = "aio-libs"; owner = "aio-libs";
repo = "aiohttp"; repo = "aiohttp";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-UOsWC5P/KT5YMzkAM6WuoOum30b8s4sgSUgR6EskHy0="; hash = "sha256-ksvGRzar1Gp+86WrRFwyHoEdthyzvaAbyubdIhON/sk=";
}; };
patches = [ patches = [

View File

@ -18,14 +18,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiojellyfin"; pname = "aiojellyfin";
version = "0.10.0"; version = "0.10.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Jc2k"; owner = "Jc2k";
repo = "aiojellyfin"; repo = "aiojellyfin";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-D4/DlhCeeI4CggW7KGauZ57fHY92JM/kZSUODyNVcNg="; hash = "sha256-A+uvM1/7HntRMIdknfHr0TMGIjHk7BCwsZopXdVoEO8=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiojobs"; pname = "aiojobs";
version = "1.2.1"; version = "1.3.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "aio-libs"; owner = "aio-libs";
repo = "aiojobs"; repo = "aiojobs";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-LwFXb/SHP6bbqPg1tqYwE03FKHf4Mv1PPOxnPdESH0I="; hash = "sha256-FNc71YyAjtR+hd0UOqFAy6XW0PwHSlM76C3ecPM5vsU=";
}; };
patches = [ patches = [

View File

@ -3,7 +3,6 @@
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder, pythonOlder,
fetchpatch,
flit-core, flit-core,
pygments, pygments,
pytestCheckHook, pytestCheckHook,
@ -12,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiorun"; pname = "aiorun";
version = "2023.7.2"; version = "2024.5.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,18 +20,9 @@ buildPythonPackage rec {
owner = "cjrh"; owner = "cjrh";
repo = "aiorun"; repo = "aiorun";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs="; hash = "sha256-7wgsj44sX2Be/QyvG7KgQ/xSgsr+WPh7eeROeICSHGw=";
}; };
patches = [
# Raise flit-core version constrains
(fetchpatch {
# https://github.com/cjrh/aiorun/pull/85
url = "https://github.com/cjrh/aiorun/commit/a0c027ea331167712738e35ca70fefcd794e16d5.patch";
hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk=";
})
];
build-system = [ flit-core ]; build-system = [ flit-core ];
dependencies = [ pygments ]; dependencies = [ pygments ];
@ -42,7 +32,6 @@ buildPythonPackage rec {
uvloop uvloop
]; ];
# allow for writable directory for darwin
preBuild = '' preBuild = ''
export HOME=$TMPDIR export HOME=$TMPDIR
''; '';

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiosql"; pname = "aiosql";
version = "10.4"; version = "12.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "nackjicholson"; owner = "nackjicholson";
repo = "aiosql"; repo = "aiosql";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-TETZxIbC7pdak3m1rBwDg7L1yah/bin6iOZD/uANh48="; hash = "sha256-Ouk1bzoczkUeYG0JKOgleLuyu9ll2y17AN7gsUI3SRo=";
}; };
sphinxRoot = "docs/source"; sphinxRoot = "docs/source";

View File

@ -22,14 +22,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "alembic"; pname = "alembic";
version = "1.13.1"; version = "1.13.3";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU="; hash = "sha256-IDUDEXQVVh4gOqFFQXQGQ6YR9kFRfwIJ/K5j6foJ8aI=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -2,56 +2,57 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder,
# Runtime dependencies
hatchling, hatchling,
toolz,
numpy,
jsonschema,
typing-extensions,
pandas,
jinja2,
packaging,
# Build, dev and test dependencies
anywidget,
ipython, ipython,
ipywidgets,
jinja2,
jsonschema,
narwhals,
numpy,
packaging,
pandas,
polars,
pytest-xdist,
pytestCheckHook, pytestCheckHook,
pythonOlder,
toolz,
typing-extensions,
vega-datasets, vega-datasets,
sphinx,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "altair"; pname = "altair";
version = "5.3.0"; version = "5.4.1";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "altair-viz"; owner = "altair-viz";
repo = "altair"; repo = "altair";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-VGtH+baIKObJY8/44JCyKi+XrIddSqOtpNeMCO+8o9M="; hash = "sha256-7C51ACaBuNtOSXqLpuCI5bnLyE9U64vNXlD4/msPq2k=";
}; };
nativeBuildInputs = [ hatchling ]; build-system = [ hatchling ];
propagatedBuildInputs = [ dependencies = [
jinja2 jinja2
jsonschema jsonschema
narwhals
numpy numpy
packaging packaging
pandas pandas
toolz toolz
] ++ lib.optional (pythonOlder "3.11") typing-extensions; ] ++ lib.optional (pythonOlder "3.14") typing-extensions;
nativeCheckInputs = [ nativeCheckInputs = [
anywidget
ipython ipython
sphinx ipywidgets
vega-datasets polars
pytest-xdist
pytestCheckHook pytestCheckHook
vega-datasets
]; ];
pythonImportsCheck = [ "altair" ]; pythonImportsCheck = [ "altair" ];

View File

@ -31,6 +31,11 @@ buildPythonPackage rec {
hash = "sha256-pf9X1B60FgqTbSw7D80ERHp4GCvCe5lqrlS96xPXLNo="; hash = "sha256-pf9X1B60FgqTbSw7D80ERHp4GCvCe5lqrlS96xPXLNo=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "pdm-backend~=" "pdm-backend>="
'';
nativeBuildInputs = [ nativeBuildInputs = [
git git
pdm-backend pdm-backend

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "annexremote"; pname = "annexremote";
version = "1.6.5"; version = "1.6.6";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Lykos153"; owner = "Lykos153";
repo = "AnnexRemote"; repo = "AnnexRemote";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-8WAa5EO5n/dccNW0TUwFgcRjvDFt8QfpHIX2arM4HGc="; hash = "sha256-RShDcqAjG+ujGzWu5S9za24WSsIWctqi3nWQ8EU4DTo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -10,36 +10,38 @@
bindep, bindep,
buildPythonPackage, buildPythonPackage,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansible-builder"; pname = "ansible-builder";
version = "3.0.1"; version = "3.1.0";
format = "pyproject"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "ansible_builder";
hash = "sha256-rxyhgj9Cad751tPAptCTLCtXQLUXaRYv39bkoFzzjOk="; inherit version;
hash = "sha256-0txXPianvVCV6YrrN+6bALyfUAWr6nFH10IpwPNCb8s=";
}; };
nativeBuildInputs = [
setuptools
setuptools-scm
];
buildInputs = [ bindep ];
propagatedBuildInputs = [
podman
jsonschema
requirements-parser
pyyaml
];
patchPhase = '' patchPhase = ''
# the upper limits of setuptools are unnecessary # the upper limits of setuptools are unnecessary
# See https://github.com/ansible/ansible-builder/issues/639 # See https://github.com/ansible/ansible-builder/issues/639
sed -i 's/, <=[0-9.]*//g' pyproject.toml sed -i 's/, <=[0-9.]*//g' pyproject.toml
''; '';
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ bindep ];
dependencies = [
podman
jsonschema
requirements-parser
pyyaml
];
meta = with lib; { meta = with lib; {
description = "Ansible execution environment builder"; description = "Ansible execution environment builder";
homepage = "https://ansible-builder.readthedocs.io/en/stable/"; homepage = "https://ansible-builder.readthedocs.io/en/stable/";

View File

@ -22,7 +22,7 @@
let let
pname = "ansible"; pname = "ansible";
version = "10.2.0"; version = "10.4.0";
in in
buildPythonPackage { buildPythonPackage {
inherit pname version; inherit pname version;
@ -32,7 +32,7 @@ buildPythonPackage {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-iqBim6js7WRl4s60kCnpPTN8Sm/Fo+bpiCXCWN1qcFc="; hash = "sha256-XBIEiDGmaQ/IZd/gPcirYcO6CLXQGySaFrJHrZmmC8A=";
}; };
postPatch = '' postPatch = ''

View File

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansitable"; pname = "ansitable";
version = "0.10.0"; version = "0.11.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-ehPPpZ9C/Nrly9WoJJfZtv2YfZ9MEcQsKtuxNpcJe7U="; hash = "sha256-MQ6VLjFDt/dEHDK8PbQsBdfzogJCm+pzyVYDbqkDOao=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -32,7 +32,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "anyio"; pname = "anyio";
version = "4.4.0"; version = "4.6.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -41,7 +41,7 @@ buildPythonPackage rec {
owner = "agronholm"; owner = "agronholm";
repo = "anyio"; repo = "anyio";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-Sz/wWOT59T7LOAq68fBujgkTaY9ydMsIoSxeP3fBaoY="; hash = "sha256-aC/+46SWrpt+4MtvrqZq4gljWb3Kgps2r2/CeN0JfHE=";
}; };
build-system = [ setuptools-scm ]; build-system = [ setuptools-scm ];
@ -78,10 +78,19 @@ buildPythonPackage rec {
"'not network'" "'not network'"
]; ];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ disabledTests =
# PermissionError: [Errno 1] Operation not permitted: '/dev/console' [
"test_is_block_device" # TypeError: __subprocess_run() got an unexpected keyword argument 'umask'
]; "test_py39_arguments"
# AttributeError: 'module' object at __main__ has no attribute '__file__'
"test_nonexistent_main_module"
# 3 second timeout expired
"test_keyboardinterrupt_during_test"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# PermissionError: [Errno 1] Operation not permitted: '/dev/console'
"test_is_block_device"
];
disabledTestPaths = [ disabledTestPaths = [
# lots of DNS lookups # lots of DNS lookups

View File

@ -49,14 +49,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "apache-beam"; pname = "apache-beam";
version = "2.56.0"; version = "2.59.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "apache"; owner = "apache";
repo = "beam"; repo = "beam";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-SD+93duc3vTIlS/LPOuzXeiUSpwX+GNrqW3GTJMVgKY="; hash = "sha256-JeVYfXAx/GBGXQKAt6pSpnxH83oyeDylEY12EDzMxnw=";
}; };
patches = [ patches = [

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "app-model"; pname = "app-model";
version = "0.2.8"; version = "0.3.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "pyapp-kit"; owner = "pyapp-kit";
repo = "app-model"; repo = "app-model";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-vGSFo2ZckIDI3TjBSTKZagTEYdILt1/5Wyws3P7FNiQ="; hash = "sha256-PvQ9l2sCi1NaF/SWApWqt6a5AHI5A+zmJRo8gR3ng6Y=";
}; };
build-system = [ build-system = [

View File

@ -2,21 +2,34 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pythonOlder,
setuptools,
unittestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "appdirs"; pname = "appdirs";
version = "1.4.4"; version = "1.4.4";
format = "setuptools"; pypoject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"; hash = "sha256-fV0BZ7KxuoIWR2Fq9Gp0nRxlN0DdDSQVEA/ibiev30E=";
}; };
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "appdirs" ];
meta = { meta = {
description = "Python module for determining appropriate platform-specific dirs"; description = "Python module for determining appropriate platform-specific dirs";
homepage = "https://github.com/ActiveState/appdirs"; homepage = "https://github.com/ActiveState/appdirs";
changelog = "https://github.com/ActiveState/appdirs/releases/tag/${version}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ ];
}; };
} }

View File

@ -9,19 +9,19 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "argcomplete"; pname = "argcomplete";
version = "3.4.0"; version = "3.5.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kislyuk"; owner = "kislyuk";
repo = pname; repo = "argcomplete";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-4JMyBixc6LcSdpvvLmK4nyyqZMK2kuFcPU7OXhJLpoc="; hash = "sha256-um8iFzEHExTRV1BAl86/XKLc7vmf2Ws1dB83agfvoec=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
setuptools-scm setuptools-scm
]; ];
@ -32,10 +32,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "argcomplete" ]; pythonImportsCheck = [ "argcomplete" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst";
description = "Bash tab completion for argparse"; description = "Bash tab completion for argparse";
downloadPage = "https://github.com/kislyuk/argcomplete";
homepage = "https://kislyuk.github.io/argcomplete/"; homepage = "https://kislyuk.github.io/argcomplete/";
changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst";
downloadPage = "https://github.com/kislyuk/argcomplete";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ womfoo ]; maintainers = with maintainers; [ womfoo ];
}; };

View File

@ -23,7 +23,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "asdf"; pname = "asdf";
version = "3.2.0"; version = "3.4.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -32,7 +32,7 @@ buildPythonPackage rec {
owner = "asdf-format"; owner = "asdf-format";
repo = "asdf"; repo = "asdf";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-r+cEv6g7fq3I/h2mlszzJRQcazy7qP9pg0hfYG/Sa9E="; hash = "sha256-2ugrByX2eSac68RGc4mhPiYP8qnYoPwbhrMmvUr2FYg=";
}; };
build-system = [ build-system = [

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "astroid"; pname = "astroid";
version = "3.2.2"; # Check whether the version is compatible with pylint version = "3.3.4"; # Check whether the version is compatible with pylint
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "PyCQA"; owner = "PyCQA";
repo = "astroid"; repo = "astroid";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Fc/AjMOz9D9SgkxXvMAhvJcZtj9BsPykg0DX4hEqdB8="; hash = "sha256-/VpGniyKzFToDNSnnbYvpUFJjx0Rx9N7x56BJnR0lpk=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "astropy-iers-data"; pname = "astropy-iers-data";
version = "0.2024.06.17.00.31.35"; version = "0.2024.9.23.0.31.43";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "astropy"; owner = "astropy";
repo = "astropy-iers-data"; repo = "astropy-iers-data";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-hFlDXnxhKuhlCFrF+Uip3Xjc9Jt8UFJcDCST90BmAlg="; hash = "sha256-PGr8meqVs9l15+k5DHmcPcGK96ydN0nRUOBVfvCtRUg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,17 +1,15 @@
{ {
lib, lib,
fetchPypi, fetchPypi,
fetchpatch,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
# build time # build time
astropy-extension-helpers, astropy-extension-helpers,
cython, cython,
jinja2, setuptools,
oldest-supported-numpy,
setuptools-scm, setuptools-scm,
wheel,
# testing # testing
pytestCheckHook, pytestCheckHook,
stdenv, stdenv,
@ -28,39 +26,29 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "astropy"; pname = "astropy";
version = "6.1.1"; version = "6.1.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; # according to setup.cfg disabled = pythonOlder "3.10";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-5cb0XZEcMKy41VbH+O2ZSuxxsQjmHu5QZ/AK8eTjYTg="; hash = "sha256-NhVY4rCTqZvr5p8f1H+shqGSYHpMFu05ugqACyq2DDQ=";
}; };
patches = [
(fetchpatch {
name = "drop-usage-known-bad-actor-cdn.patch";
url = "https://github.com/astropy/astropy/commit/d329cb38e49584ad0ff5244fd2fff74cfa1f92f1.patch";
hash = "sha256-+DbDwYeyR+mMDLRB4jiyol/5WO0LwqSCCEwjgflxoTk=";
})
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0" "numpy" --replace-fail "numpy>=2.0.0" "numpy"
''; '';
nativeBuildInputs = [ build-system = [
astropy-extension-helpers astropy-extension-helpers
cython cython
jinja2 setuptools
oldest-supported-numpy
setuptools-scm setuptools-scm
wheel
]; ];
propagatedBuildInputs = [ dependencies = [
astropy-iers-data astropy-iers-data
numpy numpy
packaging packaging
@ -87,10 +75,6 @@ buildPythonPackage rec {
# https://github.com/astropy/astropy/issues/15441 # https://github.com/astropy/astropy/issues/15441
"TestUnifiedOutputRegistry" "TestUnifiedOutputRegistry"
# fail due to pytest>=8
# https://github.com/astropy/astropy/issues/15960#issuecomment-1913654471
"test_distortion_header"
# flaky # flaky
"test_timedelta_conversion" "test_timedelta_conversion"
# More flaky tests, see: https://github.com/NixOS/nixpkgs/issues/294392 # More flaky tests, see: https://github.com/NixOS/nixpkgs/issues/294392
@ -99,6 +83,9 @@ buildPythonPackage rec {
"test_datetime_to_timedelta" "test_datetime_to_timedelta"
"test_datetime_difference_agrees_with_timedelta_no_hypothesis" "test_datetime_difference_agrees_with_timedelta_no_hypothesis"
# SAMPProxyError 1: 'Timeout expired!'
"TestStandardProfile.test_main"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_sidereal_lat_independent" ]; ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_sidereal_lat_independent" ];
meta = { meta = {

View File

@ -2,19 +2,19 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
hatchling,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytestCheckHook, pytestCheckHook,
python-socks, python-socks,
pythonOlder, pythonOlder,
setuptools,
tldextract, tldextract,
whodap, whodap,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncwhois"; pname = "asyncwhois";
version = "1.1.4"; version = "1.1.5";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -23,21 +23,16 @@ buildPythonPackage rec {
owner = "pogzyb"; owner = "pogzyb";
repo = "asyncwhois"; repo = "asyncwhois";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-BjHGp94vad5qTvffiU8ZEOxYeXNzQHlNq1SaxviYfps="; hash = "sha256-y5JmAbrk9qJeNYejNcz5nI5bghaetUw1xkD8qgwOkao=";
}; };
postPatch = '' build-system = [ hatchling ];
substituteInPlace setup.py \
--replace-fail "python-socks[asyncio]" "python-socks"
'';
build-system = [ setuptools ];
dependencies = [ dependencies = [
python-socks python-socks
tldextract tldextract
whodap whodap
]; ] ++ python-socks.optional-dependencies.asyncio;
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@ -68,7 +63,7 @@ buildPythonPackage rec {
description = "Python module for retrieving WHOIS information"; description = "Python module for retrieving WHOIS information";
homepage = "https://github.com/pogzyb/asyncwhois"; homepage = "https://github.com/pogzyb/asyncwhois";
changelog = "https://github.com/pogzyb/asyncwhois/releases/tag/v${version}"; changelog = "https://github.com/pogzyb/asyncwhois/releases/tag/v${version}";
license = with licenses; [ asl20 ]; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };
} }

View File

@ -4,29 +4,29 @@
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pythonOlder, pythonOlder,
substituteAll,
hatchling, hatchling,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "attrs"; pname = "attrs";
version = "23.2.0"; version = "24.2.0";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-k13DtSnCYvbPduUId9NaS9PB3hlP1B9HoreujxmXHzA="; hash = "sha256-XPsbkUi1sIZWm67APyDXtr87ysyaQr6/h/+qyjYvY0Y=";
}; };
patches = [ patches = [
# hatch-vcs and hatch-fancy-pypi-readme depend on pytest, which depends on attrs (substituteAll {
./remove-hatch-plugins.patch # hatch-vcs and hatch-fancy-pypi-readme depend on pytest, which depends on attrs
src = ./remove-hatch-plugins.patch;
inherit version;
})
]; ];
postPatch = ''
substituteAllInPlace pyproject.toml
'';
nativeBuildInputs = [ hatchling ]; nativeBuildInputs = [ hatchling ];
outputs = [ outputs = [

View File

@ -1,5 +1,5 @@
diff --git a/pyproject.toml b/pyproject.toml diff --git a/pyproject.toml b/pyproject.toml
index 1c72fc2..ae45740 100644 index 93b3f40..e34ff5d 100644
--- a/pyproject.toml --- a/pyproject.toml
+++ b/pyproject.toml +++ b/pyproject.toml
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
@ -11,7 +11,7 @@ index 1c72fc2..ae45740 100644
build-backend = "hatchling.build" build-backend = "hatchling.build"
@@ -26,7 +26,8 @@ classifiers = [ @@ -27,7 +27,8 @@ classifiers = [
"Typing :: Typed", "Typing :: Typed",
] ]
dependencies = ["importlib_metadata;python_version<'3.8'"] dependencies = ["importlib_metadata;python_version<'3.8'"]
@ -21,10 +21,11 @@ index 1c72fc2..ae45740 100644
[project.optional-dependencies] [project.optional-dependencies]
tests-mypy = [ tests-mypy = [
@@ -70,54 +71,9 @@ Funding = "https://github.com/sponsors/hynek" @@ -76,54 +77,9 @@ GitHub = "https://github.com/python-attrs/attrs"
Funding = "https://github.com/sponsors/hynek"
Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi" Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi"
-
-[tool.hatch.version] -[tool.hatch.version]
-source = "vcs" -source = "vcs"
-raw-options = { local_scheme = "no-local-version" } -raw-options = { local_scheme = "no-local-version" }
@ -64,15 +65,14 @@ index 1c72fc2..ae45740 100644
- -
---- ----
- -
-[Full changelog](https://www.attrs.org/en/stable/changelog.html) -[Full changelog](https://www.attrs.org/en/stable/changelog.html)
-""" -"""
- -
-# Point sponsor image URLs to versions. -# Point sponsor image URLs to versions.
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] -[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
-pattern = '\/latest\/_static/sponsors' -pattern = 'docs\/_static\/sponsors'
-replacement = '/$HFPR_VERSION/_static/sponsors' -replacement = 'https://www.attrs.org/en/$HFPR_VERSION/_static/sponsors'
- -
- [[tool.sponcon.sponsors]]
[tool.pytest.ini_options] title = "Variomedia AG"
addopts = ["-ra", "--strict-markers", "--strict-config"] url = "https://www.variomedia.de/"
xfail_strict = true

View File

@ -2,37 +2,36 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
hatchling,
numpy, numpy,
future, pytestCheckHook,
pythonOlder, pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "autograd"; pname = "autograd";
version = "1.6.2"; version = "1.7.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-hzHgigxOOJ2GlaQAcq2kUSZBwRO2ys6PTPvo636a7es="; hash = "sha256-3nQ/02jW31I803MF3NFxhhqXUqFESTZ30sn1pWmD/y8=";
}; };
propagatedBuildInputs = [ build-system = [ hatchling ];
numpy
future
];
# Currently, the PyPI tarball doesn't contain the tests. When that has been dependencies = [ numpy ];
# fixed, enable testing. See: https://github.com/HIPS/autograd/issues/404
doCheck = false; nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "autograd" ]; pythonImportsCheck = [ "autograd" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/HIPS/autograd";
description = "Compute derivatives of NumPy code efficiently"; description = "Compute derivatives of NumPy code efficiently";
homepage = "https://github.com/HIPS/autograd";
changelog = "https://github.com/HIPS/autograd/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ jluttine ]; maintainers = with maintainers; [ jluttine ];
}; };

View File

@ -10,25 +10,19 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "avro"; pname = "avro";
version = "1.11.3"; version = "1.12.0";
pyproject = true; pyproject = true;
# distutils usage: https://github.com/search?q=repo%3Aapache%2Favro%20distutils&type=code disabled = pythonOlder "3.7";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-M5O7UTn5zweR0gV1bOHjmltYWGr1sVPWo7WhmWEOnRc="; hash = "sha256-ytnFOyPO7Wmceva93O1C4sVy/WtAjCV6fU/E6M8uLWs=";
}; };
postPatch = lib.optionalString (!pythonOlder "3.12") '' build-system = [ setuptools ];
substituteInPlace avro/test/test_tether_word_count.py \
--replace-fail 'distutils' 'setuptools._distutils'
'';
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; dependencies = lib.optionals (pythonOlder "3.8") [ typing-extensions ];
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytest7CheckHook ]; nativeCheckInputs = [ pytest7CheckHook ];
@ -43,10 +37,10 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python serialization and RPC framework"; description = "Python serialization and RPC framework";
mainProgram = "avro";
homepage = "https://github.com/apache/avro"; homepage = "https://github.com/apache/avro";
changelog = "https://github.com/apache/avro/releases/tag/release-${version}"; changelog = "https://github.com/apache/avro/releases/tag/release-${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ zimbatm ]; maintainers = with maintainers; [ zimbatm ];
mainProgram = "avro";
}; };
} }

View File

@ -12,13 +12,14 @@
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
pyyaml, pyyaml,
setuptools,
typing-extensions, typing-extensions,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aws-sam-translator"; pname = "aws-sam-translator";
version = "1.89.0"; version = "1.91.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -26,7 +27,7 @@ buildPythonPackage rec {
owner = "aws"; owner = "aws";
repo = "serverless-application-model"; repo = "serverless-application-model";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-wqM3n99lD0s/E9nd55q19Us31XgFtU/bBYJR1HTnnvk="; hash = "sha256-jcRpn9STkfg1xTwYzkpoYyuG0Hrv0XnbW1h6+SxzEjA=";
}; };
postPatch = '' postPatch = ''
@ -34,7 +35,9 @@ buildPythonPackage rec {
rm pytest.ini rm pytest.ini
''; '';
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
boto3 boto3
jsonschema jsonschema
pydantic pydantic

View File

@ -20,14 +20,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ax-platform"; pname = "ax-platform";
version = "0.4.1"; version = "0.4.3";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "facebook"; owner = "facebook";
repo = "ax"; repo = "ax";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-ygMMMKY5XsoQGp9yUMFAQqkSUlXNBJCb8xgGE10db4U="; hash = "sha256-jmBjrtxqg4Iu3Qr0HRqjVfwURXzbJaGm+DBFNHYk/vA=";
}; };
build-system = [ build-system = [

View File

@ -20,7 +20,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "1.30.2"; version = "1.31.0";
pname = "azure-core"; pname = "azure-core";
pyproject = true; pyproject = true;
@ -29,8 +29,9 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "azure_core";
hash = "sha256-oU3CEO/NYIghqkctn7jo0DXSm2iZOBkUe8KQqKwiRHI="; inherit version;
hash = "sha256-ZWoN1h4YabFQa3xqOzHWLxWYSxpXPWMm9qovPkEjKEs=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -7,25 +7,31 @@
cryptography, cryptography,
msal, msal,
msal-extensions, msal-extensions,
typing-extensions,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-identity"; pname = "azure-identity";
version = "1.17.0"; version = "1.18.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "azure_identity";
hash = "sha256-oRaPIjstf6OWg2K3iv/RV6Hzdy8xCozc6IPMUVxsiZg="; inherit version;
hash = "sha256-9WdXmmXYky+pE8du3fMwUQGhXlcnpeSqXfZJoPVT1MM=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
azure-core azure-core
cryptography cryptography
msal msal
msal-extensions msal-extensions
typing-extensions
]; ];
pythonImportsCheck = [ "azure.identity" ]; pythonImportsCheck = [ "azure.identity" ];
@ -36,7 +42,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Microsoft Azure Identity Library for Python"; description = "Microsoft Azure Identity Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-identity_${version}/sdk/identity/azure-identity/CHANGELOG.md"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-identity_${version}/sdk/identity/azure-identity/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ]; maintainers = with maintainers; [ kamadorueda ];

View File

@ -1,35 +1,33 @@
{ {
lib, lib,
azure-common,
azure-core, azure-core,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
isodate, isodate,
msrest,
pythonOlder, pythonOlder,
typing-extensions, typing-extensions,
uamqp, setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-servicebus"; pname = "azure-servicebus";
version = "7.12.2"; version = "7.12.3";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "azure_servicebus";
hash = "sha256-pqPF957VvvEB2ePjyYahA7IA4mxJU8R6UvVSx1fkXso="; inherit version;
hash = "sha256-PwdZcxrSIRxo60sh5byimCf31v8Ccr3H7vEDwcE/gyI=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
azure-common
dependencies = [
azure-core azure-core
isodate isodate
msrest
typing-extensions typing-extensions
uamqp
]; ];
# Tests require dev-tools # Tests require dev-tools
@ -39,7 +37,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Microsoft Azure Service Bus Client Library"; description = "Microsoft Azure Service Bus Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-servicebus_${version}/sdk/servicebus/azure-servicebus/CHANGELOG.md"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-servicebus_${version}/sdk/servicebus/azure-servicebus/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ maxwilson ]; maintainers = with maintainers; [ maxwilson ];

View File

@ -6,22 +6,26 @@
fetchPypi, fetchPypi,
isodate, isodate,
pythonOlder, pythonOlder,
setuptools,
typing-extensions, typing-extensions,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-storage-blob"; pname = "azure-storage-blob";
version = "12.20.0"; version = "12.23.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "azure_storage_blob";
hash = "sha256-7rkSVuQdS1ubrWqH/QqK3gfdWKpSNE4sjSdG4noBfTs="; inherit version;
hash = "sha256-pYflTU450qJ711EJ2xZP+iBY/hlAYeVEbFqJvKkYJy8=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
azure-core azure-core
cryptography cryptography
isodate isodate

View File

@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
azure-core,
azure-storage-blob,
isodate,
typing-extensions,
}:
buildPythonPackage rec {
pname = "azure-storage-file-datalake";
version = "12.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-sdk-for-python";
rev = "refs/tags/azure-storage-file-datalake_${version}";
hash = "sha256-FT51a7yuSMLJSnMFK9N09Rc8p/uaoYCcj9WliSvY6UA=";
};
sourceRoot = "${src.name}/sdk/storage/azure-storage-file-datalake";
build-system = [ setuptools ];
dependencies = [
azure-core
azure-storage-blob
isodate
typing-extensions
];
optional-dependencies = {
aio = [ azure-core ] ++ azure-core.optional-dependencies.aio;
};
pythonImportsCheck = [ "azure.storage.filedatalake" ];
# require devtools_testutils which is a internal package for azure-sdk
doCheck = false;
meta = {
description = "Microsoft Azure File DataLake Storage Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "b2sdk"; pname = "b2sdk";
version = "2.4.0"; version = "2.5.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "Backblaze"; owner = "Backblaze";
repo = "b2-sdk-python"; repo = "b2-sdk-python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-SaoQzP7vtzVWmkUTw0vCeneeSMTmBTIr5kiMXGcgm9g="; hash = "sha256-oS037l5pQW/z4GX5+hb/mCUA219cGHE7lyiG8aos21k=";
}; };
build-system = [ pdm-backend ]; build-system = [ pdm-backend ];
@ -71,6 +71,7 @@ buildPythonPackage rec {
"test_files_headers" "test_files_headers"
"test_large_file" "test_large_file"
"test_file_info_b2_attributes" "test_file_info_b2_attributes"
"test_sync_folder"
]; ];
pythonImportsCheck = [ "b2sdk" ]; pythonImportsCheck = [ "b2sdk" ];

View File

@ -17,14 +17,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "babel"; pname = "babel";
version = "2.15.0"; version = "2.16.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-ja8OJl0FdovGx6MUzxMh6aEjr8MozGNcGGIqLzCgRBM="; hash = "sha256-0fNVTKJmBf4XPz3gxl91D1pC+SRJm/E03mQjWCKY4xY=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bambi"; pname = "bambi";
version = "0.13.0"; version = "0.14.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "bambinos"; owner = "bambinos";
repo = "bambi"; repo = "bambi";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-9+uTyV3mQlHOKAjXohwkhTzNe/+I5XR/LuH1ZYvhc8I="; hash = "sha256-kxrNNbZfC96/XHb1I7aUHYZdFJvGR80ZI8ell/0FQXc=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -21,14 +21,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bcrypt"; pname = "bcrypt";
version = "4.1.3"; version = "4.2.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-LuFd10n1lS/j8EMND/a3QILhWcUDMqFBPVG1aJzwZiM="; hash = "sha256-z2nq9Rhf1Y8mj4BbUFzjH5ufwtZLN2ZCFk6SRFQMEiE=";
}; };
cargoRoot = "src/_bcrypt"; cargoRoot = "src/_bcrypt";
@ -36,7 +36,7 @@ buildPythonPackage rec {
inherit src; inherit src;
sourceRoot = "${pname}-${version}/${cargoRoot}"; sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-Uag1pUuis5lpnus2p5UrMLa4HP7VQLhKxR5TEMfpK0s="; hash = "sha256-dOS9A3pTwXYkzPFFNh5emxJw7pSdDyY+mNIoHdwNdmg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,7 +2,7 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
setuptools, hatchling,
pytestCheckHook, pytestCheckHook,
pythonOlder, pythonOlder,
typing-extensions, typing-extensions,
@ -10,17 +10,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "beartype"; pname = "beartype";
version = "0.18.5"; version = "0.19.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Jk3cLx2p7JT/Y5FB++M9IuEqn3WqhjuDtwRv//E4GSc="; hash = "sha256-3kLfwbpcNxD95sMALjvSytI27U0qq+h2NFqwtCNKZXM=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ hatchling ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook

View File

@ -74,7 +74,7 @@
}: }:
let let
version = "1.3.3"; version = "1.3.7";
aws = [ fs-s3fs ]; aws = [ fs-s3fs ];
grpc = [ grpc = [
grpcio grpcio
@ -128,7 +128,7 @@ buildPythonPackage {
owner = "bentoml"; owner = "bentoml";
repo = "BentoML"; repo = "BentoML";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-PjmXPSPukLJ+iCpBdUynhcWCfFqplmdsgj0LYpodE/c="; hash = "sha256-98SVW7f/Yn+NMfS6UIicQcoatMSm4XSJzbuJ0S/p3sg=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View File

@ -2,26 +2,46 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pytestCheckHook,
pythonOlder,
requests, requests,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "betamax"; pname = "betamax";
version = "0.9.0"; version = "0.9.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q="; hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q=";
}; };
propagatedBuildInputs = [ requests ]; build-system = [ setuptools ];
doCheck = false; dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "betamax" ];
disabledTestPaths = [
# Tests require network access
"tests/integration/test_hooks.py"
"tests/integration/test_placeholders.py"
"tests/integration/test_record_modes.py"
"tests/integration/test_unicode.py"
"tests/regression/test_gzip_compression.py"
"tests/regression/test_requests_2_11_body_matcher.py"
];
meta = with lib; { meta = with lib; {
homepage = "https://betamax.readthedocs.org/en/latest/"; description = "A VCR imitation for requests";
description = "VCR imitation for requests"; homepage = "https://betamax.readthedocs.org/";
changelog = "https://github.com/betamaxpy/betamax/blob/${version}/HISTORY.rst";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
}; };

View File

@ -11,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bids-validator"; pname = "bids-validator";
version = "1.14.6"; version = "1.14.7.post0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "bids_validator"; pname = "bids_validator";
inherit version; inherit version;
hash = "sha256-3ytrXRqq1h00zK0ElPLtc84wgoJa2jGVTE4UwlONSFw="; hash = "sha256-5gBaUAt1+KlhWT+2fUYIUQfa2xFvWaXDtSSqBpeUW2Y=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -23,12 +23,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "bilibili-api-python"; pname = "bilibili-api-python";
version = "16.2.0"; version = "16.3.0";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-ecv9lzp2L13seBosahgnglaZP8YZCD/13nlTPP8LCs0="; hash = "sha256-mwhyFc3b1qA7W76gaBcAup+Wca6gQAdRwZJaZXOHqCw=";
}; };
postPatch = '' postPatch = ''

View File

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "biopandas"; pname = "biopandas";
version = "0.5.0"; version = "0.5.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BioPandas"; owner = "BioPandas";
repo = "biopandas"; repo = "biopandas";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I="; hash = "sha256-dUeGjDDz9VA1NrFLGKy0ebaa+MU4c1tHi5YYkAspLRk=";
}; };
patches = [ patches = [

View File

@ -1,18 +0,0 @@
diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py
index 8fe75ebb728..6758317d05f 100644
--- a/Bio/SeqIO/SeqXmlIO.py
+++ b/Bio/SeqIO/SeqXmlIO.py
@@ -498,11 +498,12 @@ def iterate(self, handle):
if not text:
break
parser.feed(text)
+ # Closing the parser ensures that all XML data fed into it are processed
+ parser.close()
# We have reached the end of the XML file;
# send out the remaining records
yield from records
records.clear()
- parser.close()
class SeqXmlWriter(SequenceWriter):

View File

@ -1,7 +1,7 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchFromGitHub,
pythonOlder, pythonOlder,
setuptools, setuptools,
numpy, numpy,
@ -9,22 +9,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "biopython"; pname = "biopython";
version = "1.83"; version = "1.84";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "biopython";
hash = "sha256-eOa/t43mMDQDev01/nfLbgqeW2Jwa+z3in2SKxbtg/c="; repo = "biopython";
rev = "refs/tags/biopython-${lib.replaceChars [ "." ] [ "" ] version}";
hash = "sha256-zXUB/AkWc/cY9M02WheSvXjT/nwM+lGXfXgCcWfu0G4=";
}; };
patches = [
# cherry-picked from https://github.com/biopython/biopython/commit/3f9bda7ef44f533dadbaa0de29ac21929bc0b2f1
# fixes SeqXMLIO parser to process all data. remove on next update
./close_parser_on_time.patch
];
build-system = [ setuptools ]; build-system = [ setuptools ];
dependencies = [ numpy ]; dependencies = [ numpy ];

View File

@ -13,7 +13,7 @@
let let
pname = "bitsandbytes"; pname = "bitsandbytes";
version = "0.43.1"; version = "0.43.3";
inherit (torch) cudaCapabilities cudaPackages cudaSupport; inherit (torch) cudaCapabilities cudaPackages cudaSupport;
inherit (cudaPackages) backendStdenv cudaVersion; inherit (cudaPackages) backendStdenv cudaVersion;
@ -54,7 +54,7 @@ buildPythonPackage {
owner = "TimDettmers"; owner = "TimDettmers";
repo = "bitsandbytes"; repo = "bitsandbytes";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-GFbFKPdV96DXPA+PZO4h0zdBclN670fb0PGv4QPHWHU="; hash = "sha256-JOB+WCrLFjjeJJHbsOei8+D5CMuFmyVLnoKRd05tYDU=";
}; };
postPatch = postPatch =

View File

@ -25,14 +25,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "black"; pname = "black";
version = "24.4.2"; version = "24.8.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-yHK1MFfwAAhdpmoZxV1o9vjdysJkI5KtOjVYeEBvvU0="; hash = "sha256-JQCUVCC2eEw4ue6IWvA59edHHvKEqwP6Nezd5GiM2D8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -19,6 +19,7 @@
# propagates # propagates
msgpack, msgpack,
ndindex, ndindex,
numexpr,
numpy, numpy,
py-cpuinfo, py-cpuinfo,
rich, rich,
@ -31,21 +32,25 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "blosc2"; pname = "blosc2";
version = "2.5.1"; version = "2.7.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Blosc"; owner = "Blosc";
repo = "python-blosc2"; repo = "python-blosc2";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-yBgnNJU1q+FktIkpQn74LuRP19Ta/fNC60Z8TxzlWPk="; hash = "sha256-2aLfyd+/I8cy9OqdU4yNXY/bkf0AdXu+hZPLDdM3g5g=";
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0" "numpy"
substituteInPlace requirements-runtime.txt \ substituteInPlace requirements-runtime.txt \
--replace "pytest" "" --replace "pytest" ""
''; '';
pythonRelaxDeps = [ "numpy" ];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
cython cython
@ -65,6 +70,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
msgpack msgpack
ndindex ndindex
numexpr
numpy numpy
py-cpuinfo py-cpuinfo
rich rich

View File

@ -46,14 +46,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bokeh"; pname = "bokeh";
# update together with panel which is not straightforward # update together with panel which is not straightforward
version = "3.5.2"; version = "3.6.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-A6VKZ9tne4iBg0JxxiCngbODrlk69cPqIUkWR1REDQc="; hash = "sha256-ADLcHnatCXsHYm5RWEaF/0jGVIH7qq0QVmOxBGFlhno=";
}; };
src_test = fetchFromGitHub { src_test = fetchFromGitHub {

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boltztrap2"; pname = "boltztrap2";
version = "24.1.1"; version = "24.9.4";
pyproject = true; pyproject = true;
build-system = [ setuptools ]; build-system = [ setuptools ];
@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "BoltzTraP2"; pname = "BoltzTraP2";
inherit version; inherit version;
hash = "sha256-kgv4lPBxcBmRKihaTwPRz8bHTWAWUOGZADtJUb3y+C4="; hash = "sha256-BfGR7sY0E9r+RXA1fC9uy1GXC+EFV1RKOvMyvGcf+aE=";
}; };
postPatch = '' postPatch = ''

View File

@ -3,31 +3,46 @@
fetchPypi, fetchPypi,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
cmake,
pybind11,
nanobind,
ninja,
setuptools-scm,
boost, boost,
numpy, numpy,
pytestCheckHook, pytestCheckHook,
pytest-benchmark, pytest-benchmark,
setuptools-scm, scikit-build-core,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "boost-histogram"; pname = "boost-histogram";
version = "1.4.1"; version = "1.5.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
pname = "boost_histogram"; pname = "boost_histogram";
inherit version; inherit version;
hash = "sha256-lxRvc19GfVBpdqBH8/I3zlmECpUv0jH19DH4l/sAbN0="; hash = "sha256-BiPwEObFLl0Bh2dyOVloYJDbB/ww8NHYR1tdZjxd2yw=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ cmake ];
dontUseCmakeConfigure = true;
build-system = [
pybind11
nanobind
ninja
scikit-build-core
setuptools-scm
];
buildInputs = [ boost ]; buildInputs = [ boost ];
propagatedBuildInputs = [ numpy ]; dependencies = [ numpy ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook

View File

@ -359,7 +359,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boto3-stubs"; pname = "boto3-stubs";
version = "1.34.160"; version = "1.35.29";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -367,7 +367,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "boto3_stubs"; pname = "boto3_stubs";
inherit version; inherit version;
hash = "sha256-xrHf6zyuZz7tWW8BQJM54uC5VaUkGhbO5p8pMD2bN94="; hash = "sha256-bl8IL3zQKL3zv8V8nbO3hOD27CIysQSChZqRnWzWv8k=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -28,9 +28,7 @@ buildPythonPackage rec {
hash = "sha256-b08tC8EA6iW0O/7rseD9pTkKh/cJ2fe3xJZkEqxS6VI="; hash = "sha256-b08tC8EA6iW0O/7rseD9pTkKh/cJ2fe3xJZkEqxS6VI=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
pythonRelaxDeps = [ "s3transfer" ]; pythonRelaxDeps = [ "s3transfer" ];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "botocore-stubs"; pname = "botocore-stubs";
version = "1.34.160"; version = "1.35.29";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "botocore_stubs"; pname = "botocore_stubs";
inherit version; inherit version;
hash = "sha256-kAlT8/km0gVQV3ZTX9ExBH74lRlzTx5TZdA+y67FPNk="; hash = "sha256-QNTPX8Un+604G+GM+DdADW8WiogOJu55TIwE+go+YsU=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];

View File

@ -27,9 +27,9 @@ buildPythonPackage rec {
hash = "sha256-q1NQ6KUOSNNx+i1RfWXCmkDEN4jLmhU4f5PqxaI98P0="; hash = "sha256-q1NQ6KUOSNNx+i1RfWXCmkDEN4jLmhU4f5PqxaI98P0=";
}; };
build-system = [ pythonRelaxDeps = [ "urllib3" ];
setuptools
]; build-system = [ setuptools ];
dependencies = [ dependencies = [
jmespath jmespath

View File

@ -16,14 +16,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "botorch"; pname = "botorch";
version = "0.11.3"; version = "0.12.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pytorch"; owner = "pytorch";
repo = "botorch"; repo = "botorch";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-AtRU5KC8KlkxMCU0OUAHDFK7BsPO3TbRmmzDGV7+yVk="; hash = "sha256-CKlerCUadObpPq4jQAiFDBOZMHZ4QccAKQz30OFe64E=";
}; };
build-system = [ build-system = [

View File

@ -9,12 +9,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bottle"; pname = "bottle";
version = "0.12.25"; version = "0.13.1";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-4anJSXCubXELP7RSYpTf64byy0qB7/OkuY3ED7Dl4CE="; hash = "sha256-pIhS3HoFE1PT5N491VkM0l3jcLz9lKciN1YeMUzrDIg=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -15,12 +15,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "brian2"; pname = "brian2";
version = "2.7.0"; version = "2.7.1";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-d9GDWp8CGIjeprWf4TtchVd36gmo36HBRkBOLaRXbpo="; hash = "sha256-mp1xo6ooYm21s6FYcegQdsHmVgH81usV9IfIM0GM7lc=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -12,15 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "btrees"; pname = "btrees";
version = "6.0"; version = "6.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
pname = "BTrees"; inherit pname version;
inherit version; hash = "sha256-4YdG+GQYaaIPRTKMm1+X3GxxoRlZYDVq72O3X1yNRF8=";
hash = "sha256-9puM3TNDThPhgCFruCrgt80x+t+3zFWWlcs3MZyjX/A=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bx-python"; pname = "bx-python";
version = "0.12.0"; version = "0.13.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bxlab"; owner = "bxlab";
repo = "bx-python"; repo = "bx-python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-ZpZjh7OXdUY7rd692h7VYHzC3qCrDKFme6r+wuG7GP4="; hash = "sha256-I5yc8i9xoievaZbgwHSQQSVvs1VnNa66Q883T4dCYYw=";
}; };
postPatch = '' postPatch = ''

View File

@ -3,29 +3,25 @@
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder, pythonOlder,
# build-system
setuptools, setuptools,
# tests
pytestCheckHook, pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cachetools"; pname = "cachetools";
version = "5.3.2"; version = "5.5.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tkem"; owner = "tkem";
repo = pname; repo = "cachetools";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-CmyAW9uV63OV/zZsWwZkXOWbHfHAJdYFGJsRhpqQ1f4="; hash = "sha256-WG9PiUMVGaEXXHKbtOFEGjLiSbNnpSI2fXCogpGj1PI=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];
@ -35,7 +31,7 @@ buildPythonPackage rec {
description = "Extensible memoizing collections and decorators"; description = "Extensible memoizing collections and decorators";
homepage = "https://github.com/tkem/cachetools"; homepage = "https://github.com/tkem/cachetools";
changelog = "https://github.com/tkem/cachetools/blob/v${version}/CHANGELOG.rst"; changelog = "https://github.com/tkem/cachetools/blob/v${version}/CHANGELOG.rst";
license = with licenses; [ mit ]; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };
} }

View File

@ -18,14 +18,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cantools"; pname = "cantools";
version = "39.4.5"; version = "39.4.8";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-WU8q6A3q24xrCOjhMi1C4lj0DULIDWiG2E4BQ/kLWiM="; hash = "sha256-kzgDr+l96R2ScFOwJ+KhZeTOiRq/jkLWtAmnt9/vqA0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -19,14 +19,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cashews"; pname = "cashews";
version = "7.2.0"; version = "7.3.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Krukov"; owner = "Krukov";
repo = "cashews"; repo = "cashews";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-7T9M8ioeTjW7OmcHyxZ6awNfp9kVU8Hi+Lgy17jXxK4="; hash = "sha256-GS6QnWCVUgxj5uiH13jUDvRBadAB0xcZd4pb0+4q6gk=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -4,6 +4,7 @@
buildPythonPackage, buildPythonPackage,
cbor2, cbor2,
fetchFromGitHub, fetchFromGitHub,
fetchpatch2,
exceptiongroup, exceptiongroup,
hatchling, hatchling,
hatch-vcs, hatch-vcs,
@ -11,6 +12,7 @@
immutables, immutables,
motor, motor,
msgpack, msgpack,
msgspec,
orjson, orjson,
pytest-xdist, pytest-xdist,
pytestCheckHook, pytestCheckHook,
@ -23,7 +25,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cattrs"; pname = "cattrs";
version = "23.2.3"; version = "24.1.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -32,9 +34,27 @@ buildPythonPackage rec {
owner = "python-attrs"; owner = "python-attrs";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-zWM5zmZr2EiJb/4Dc6KjDL89p0C1V0Dsz949byz5OVM="; hash = "sha256-LSP8a/JduK0h9GytfbN7/CjFlnGGChaa3VbbCHQ3AFE=";
}; };
patches = [
# https://github.com/python-attrs/cattrs/pull/576
(fetchpatch2 {
name = "attrs-24_2-compatibility1.patch";
url = "https://github.com/python-attrs/cattrs/commit/2d37226ff19506e23bbc291125a29ce514575819.patch";
excludes = [
"pyproject.toml"
"pdm.lock"
];
hash = "sha256-nbk7rmOFk42DXYdOgw4Oe3gl3HbxNEtaJ7ZiVSBb3YA=";
})
(fetchpatch2 {
name = "attrs-24_2-compatibility2.patch";
url = "https://github.com/python-attrs/cattrs/commit/4bd6dde556042241c6381e1993cedd6514921f58.patch";
hash = "sha256-H1xSAYjvVUI8/jON3LWg2F2TlSxejf6TU1jpCeqly6I=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
hatchling hatchling
hatch-vcs hatch-vcs
@ -53,6 +73,7 @@ buildPythonPackage rec {
immutables immutables
motor motor
msgpack msgpack
msgspec
orjson orjson
pytest-xdist pytest-xdist
pytestCheckHook pytestCheckHook
@ -87,6 +108,9 @@ buildPythonPackage rec {
"test_orjson" "test_orjson"
# tomlkit is pinned to an older version and newer versions raise InvalidControlChar exception # tomlkit is pinned to an older version and newer versions raise InvalidControlChar exception
"test_tomlkit" "test_tomlkit"
# msgspec causes a segmentation fault for some reason
"test_simple_classes"
"test_msgspec_json_converter"
]; ];
pythonImportsCheck = [ "cattr" ]; pythonImportsCheck = [ "cattr" ];

View File

@ -10,6 +10,7 @@
# tests # tests
hypothesis, hypothesis,
pytest-cov-stub,
pytestCheckHook, pytestCheckHook,
}: }:
@ -25,12 +26,7 @@ buildPythonPackage rec {
hash = "sha256-HFM8UN3oa+8caVBgIFSg/6PDduiw4gx7j1sQh5P2mD4="; hash = "sha256-HFM8UN3oa+8caVBgIFSg/6PDduiw4gx7j1sQh5P2mD4=";
}; };
postPatch = '' build-system = [
substituteInPlace pyproject.toml \
--replace " --cov" ""
'';
nativeBuildInputs = [
setuptools setuptools
setuptools-scm setuptools-scm
]; ];
@ -39,6 +35,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
hypothesis hypothesis
pytest-cov-stub
pytestCheckHook pytestCheckHook
]; ];

View File

@ -15,14 +15,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "celery-redbeat"; pname = "celery-redbeat";
version = "2.1.0"; version = "2.2.0";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sibson"; owner = "sibson";
repo = "redbeat"; repo = "redbeat";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-WW/OYa7TWEKkata1eULir29wHaCnavBJebn4GrBzmWY="; hash = "sha256-lAEbhRTp0jYrCgHaTvPrl+lW1NRezmmTqAnUmLdpVwY=";
}; };
patches = [ patches = [

View File

@ -35,9 +35,9 @@ buildPythonPackage rec {
sourceRoot = "${src.name}/${pname}"; sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ dependencies = [
configargparse configargparse
acme acme
configobj configobj
@ -61,7 +61,11 @@ buildPythonPackage rec {
pytest-xdist pytest-xdist
]; ];
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ]; pytestFlagsArray = [
"-o cache_dir=$(mktemp -d)"
"-W"
"ignore::DeprecationWarning"
];
makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ]; makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "certifi"; pname = "certifi";
version = "2024.07.04"; version = "2024.08.30";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = pname; owner = pname;
repo = "python-certifi"; repo = "python-certifi";
rev = version; rev = version;
hash = "sha256-ArJB19tPpwTT1LjYo8OF1+Mo//l8FaMHTpvSvlfve3Q="; hash = "sha256-E3Ykb7KLWWVlJ8kFGC9X/6I1SlyNxUXUPb3xN8CwlHI=";
}; };
patches = [ patches = [

View File

@ -1,29 +1,44 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
cryptography,
fetchPypi, fetchPypi,
pyopenssl, flask,
pytestCheckHook,
pythonOlder,
requests,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "certipy"; pname = "certipy";
version = "0.1.3"; version = "0.2.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0n980gqpzh0fm58h3i4mi2i10wgj606lscm1r5sk60vbf6vh8mv9"; hash = "sha256-DA6nslJItC+5MPMBc6eMAp5rpn4u+VmMpEcNiXXJy7Y=";
}; };
propagatedBuildInputs = [ pyopenssl ]; build-system = [ setuptools-scm ];
doCheck = false; # no tests were included dependencies = [ cryptography ];
nativeCheckInputs = [
flask
pytestCheckHook
requests
];
pythonImportsCheck = [ "certipy" ];
meta = with lib; { meta = with lib; {
description = "Utility to create and sign CAs and certificates";
homepage = "https://github.com/LLNL/certipy"; homepage = "https://github.com/LLNL/certipy";
description = "wrapper for pyOpenSSL";
mainProgram = "certipy";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ isgy ]; maintainers = with maintainers; [ isgy ];
mainProgram = "certipy";
}; };
} }

View File

@ -2,6 +2,7 @@
lib, lib,
aws-sam-translator, aws-sam-translator,
buildPythonPackage, buildPythonPackage,
defusedxml,
fetchFromGitHub, fetchFromGitHub,
jschema-to-python, jschema-to-python,
jsonpatch, jsonpatch,
@ -15,13 +16,14 @@
pyyaml, pyyaml,
regex, regex,
sarif-om, sarif-om,
setuptools,
sympy, sympy,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cfn-lint"; pname = "cfn-lint";
version = "0.87.7"; version = "1.15.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -29,10 +31,12 @@ buildPythonPackage rec {
owner = "aws-cloudformation"; owner = "aws-cloudformation";
repo = "cfn-lint"; repo = "cfn-lint";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-em6Vi9zIn8ikmcHVbljA1vr+R3t8ZpJ57p3Ix3bqMYU="; hash = "sha256-45UIKXb1tX/jWw612WTGgYbg93bAYsQlXHJDZQUl5jg=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
dependencies = [
aws-sam-translator aws-sam-translator
jschema-to-python jschema-to-python
jsonpatch jsonpatch
@ -46,11 +50,26 @@ buildPythonPackage rec {
sympy sympy
]; ];
optional-dependencies = {
graph = [ pydot ];
junit = [ junit-xml ];
sarif = [
jschema-to-python
sarif-om
];
full = [
jschema-to-python
junit-xml
pydot
sarif-om
];
};
nativeCheckInputs = [ nativeCheckInputs = [
defusedxml
mock mock
pydot
pytestCheckHook pytestCheckHook
]; ] ++ lib.flatten (builtins.attrValues optional-dependencies);
preCheck = '' preCheck = ''
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
@ -68,6 +87,8 @@ buildPythonPackage rec {
"test_override_parameters" "test_override_parameters"
"test_positional_template_parameters" "test_positional_template_parameters"
"test_template_config" "test_template_config"
# Assertion error
"test_build_graph"
]; ];
pythonImportsCheck = [ "cfnlint" ]; pythonImportsCheck = [ "cfnlint" ];

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "chispa"; pname = "chispa";
version = "0.10.0"; version = "0.10.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "MrPowers"; owner = "MrPowers";
repo = "chispa"; repo = "chispa";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-r3/Uae/Bu/+ZpWt19jetfIRpew1hBB24WWQRJIcYqFs="; hash = "sha256-WPtn8YGlj67MEy2onxoU5SctQ7NcvTImaU0VgMoz2B4=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];

View File

@ -89,10 +89,15 @@ buildPythonPackage rec {
"cirq/_version_test.py" "cirq/_version_test.py"
]; ];
disabledTests = lib.optionals stdenv.hostPlatform.isAarch64 [ disabledTests =
# https://github.com/quantumlib/Cirq/issues/5924 [
"test_prepare_two_qubit_state_using_sqrt_iswap" # Assertion error
]; "test_parameterized_cphase"
]
++ lib.optionals stdenv.hostPlatform.isAarch64 [
# https://github.com/quantumlib/Cirq/issues/5924
"test_prepare_two_qubit_state_using_sqrt_iswap"
];
meta = with lib; { meta = with lib; {
description = "Framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits"; description = "Framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits";

View File

@ -20,7 +20,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "clarifai"; pname = "clarifai";
version = "10.8.0"; version = "10.8.6";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -29,7 +29,7 @@ buildPythonPackage rec {
owner = "Clarifai"; owner = "Clarifai";
repo = "clarifai-python"; repo = "clarifai-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-dRhFZACfdMW0cIBDVUOSGDl5fai0gFXDPyfDil+itwQ="; hash = "sha256-/fHNRFtxyNa9VdEi5wQ+YA+9mFv3ZpRFJQnWkuxQd5I=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [

View File

@ -12,12 +12,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "click-odoo-contrib"; pname = "click-odoo-contrib";
version = "1.18.1"; version = "1.19";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-3gusvy3d6kgmyBY+bmXB6lbWk7qxJIuHALZtug1WLzo="; hash = "sha256-Tg3C/mdgkB1TtQZaUOX4ZjpD3InI8CxoNUSfotRqbg0=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];

View File

@ -24,7 +24,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "clickhouse-connect"; pname = "clickhouse-connect";
version = "0.7.12"; version = "0.8.0";
format = "setuptools"; format = "setuptools";
@ -34,7 +34,7 @@ buildPythonPackage rec {
repo = "clickhouse-connect"; repo = "clickhouse-connect";
owner = "ClickHouse"; owner = "ClickHouse";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-UJSg/ADxVsO4xuym8NGjbgQafWmu7J3Is2hKvObYhU8="; hash = "sha256-Jx+lbCs1zsU11D76COIiMxwqHlYKC1DOMegM4RsQkVg=";
}; };
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];

View File

@ -4,46 +4,46 @@
pythonOlder, pythonOlder,
fetchFromGitHub, fetchFromGitHub,
flit-core, flit-core,
importlib-metadata,
typing-extensions, typing-extensions,
cloudpathlib,
azure-storage-blob, azure-storage-blob,
azure-storage-file-datalake,
google-cloud-storage, google-cloud-storage,
boto3, boto3,
psutil, psutil,
pydantic, pydantic,
pytest7CheckHook, pytestCheckHook,
pytest-cases, pytest-cases,
pytest-cov, pytest-cov-stub,
pytest-xdist, pytest-xdist,
python-dotenv, python-dotenv,
shortuuid, shortuuid,
tenacity,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cloudpathlib"; pname = "cloudpathlib";
version = "0.18.1"; version = "0.19.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "drivendataorg"; owner = "drivendataorg";
repo = "cloudpathlib"; repo = "cloudpathlib";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-RrdRUqQ3QyMUpTi1FEsSXK6WS37r77SdPBH1oVVvSw0="; hash = "sha256-VjoQc9nzwcMh9kiqWXsJNE5X7e7/sVGId5jgFTLZQy4=";
}; };
nativeBuildInputs = [ flit-core ]; build-system = [ flit-core ];
propagatedBuildInputs = [ dependencies = lib.optional (pythonOlder "3.11") typing-extensions;
importlib-metadata
typing-extensions
];
optional-dependencies = { optional-dependencies = {
all = [ cloudpathlib ]; all = optional-dependencies.azure ++ optional-dependencies.gs ++ optional-dependencies.s3;
azure = [ azure-storage-blob ]; azure = [
azure-storage-blob
azure-storage-file-datalake
];
gs = [ google-cloud-storage ]; gs = [ google-cloud-storage ];
s3 = [ boto3 ]; s3 = [ boto3 ];
}; };
@ -51,18 +51,16 @@ buildPythonPackage rec {
pythonImportsCheck = [ "cloudpathlib" ]; pythonImportsCheck = [ "cloudpathlib" ];
nativeCheckInputs = [ nativeCheckInputs = [
azure-storage-blob
boto3
google-cloud-storage
psutil psutil
pydantic pydantic
pytest7CheckHook pytestCheckHook
pytest-cases pytest-cases
pytest-cov pytest-cov-stub
pytest-xdist pytest-xdist
python-dotenv python-dotenv
shortuuid shortuuid
]; tenacity
] ++ optional-dependencies.all;
meta = with lib; { meta = with lib; {
description = "Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage"; description = "Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage";

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cocotb"; pname = "cocotb";
version = "1.8.1"; version = "1.9.1";
format = "setuptools"; format = "setuptools";
# pypi source doesn't include tests # pypi source doesn't include tests
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "cocotb"; owner = "cocotb";
repo = "cocotb"; repo = "cocotb";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-B7SePM8muEL3KFVOY7+OAgQVIRvTs6k29xASK9lgCB4="; hash = "sha256-+pS+y9rmyJ4laDK5evAtoqr5D0GuHGaX6DpK1qtumnA=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "configobj"; pname = "configobj";
version = "5.0.8"; version = "5.0.9";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "DiffSK"; owner = "DiffSK";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-t3Q0FEBibkAM5PAG4fjXwNH/71RqSSDj/Mn27ri0iDU="; hash = "sha256-duPCGBaHCXp4A6ZHLnyL1SZtR7K4FJ4hs5wCE1V9WB4=";
}; };
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];

View File

@ -10,14 +10,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "configparser"; pname = "configparser";
version = "7.0.0"; version = "7.1.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jaraco"; owner = "jaraco";
repo = "configparser"; repo = "configparser";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-OqlmAmBt4x+cJtK89dxsU7+Vn9wmGR9Djc59/ewHSxs="; hash = "sha256-6B1I/kS60opMDpCzy2tnlnV65Qo500G0zPHP1I5TDWA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "confluent-kafka"; pname = "confluent-kafka";
version = "2.4.0"; version = "2.5.3";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "confluentinc"; owner = "confluentinc";
repo = "confluent-kafka-python"; repo = "confluent-kafka-python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-JlPWh46WjY4GHRKtamB+qigVvVzvbRagbigyCol6lfg="; hash = "sha256-b9RTz4wUtDzGkoeB0cp5vbZEBk8jSw2JiXEx6tUuPVw=";
}; };
buildInputs = [ rdkafka ]; buildInputs = [ rdkafka ];

View File

@ -12,12 +12,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "consolekit"; pname = "consolekit";
version = "1.7.0"; version = "1.7.1";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Dqi84qeUGirw4z1ay3burLeHESeNK2DDPtPnpJzD/Qw=A"; hash = "sha256-TU5sufqJ0znCD/QOidrT7jB1NCXJ1p8Z7FPFNPp97qg=";
}; };
build-system = [ flit-core ]; build-system = [ flit-core ];

View File

@ -27,7 +27,7 @@
let let
contourpy = buildPythonPackage rec { contourpy = buildPythonPackage rec {
pname = "contourpy"; pname = "contourpy";
version = "1.2.1"; version = "1.3.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -36,17 +36,18 @@ let
owner = "contourpy"; owner = "contourpy";
repo = "contourpy"; repo = "contourpy";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Qd6FC7SgFyC/BvOPWVkr2ZfKVMVAknLlidNRq3zcWU0="; hash = "sha256-QvAIV2Y8H3oPZCF5yaqy2KWfs7aMyRX6aAU5t8E9Vpo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
meson-python
ninja ninja
pybind11 pybind11
]; ];
propagatedBuildInputs = [ numpy ]; build-system = [ meson-python ];
dependencies = [ numpy ];
passthru.optional-depdendencies = { passthru.optional-depdendencies = {
bokeh = [ bokeh = [

View File

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "courlan"; pname = "courlan";
version = "1.3.0"; version = "1.3.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-OGjziBIvKwnRVIAgQ/6S39YsPqenAOquirwFGYz4vCU="; hash = "sha256-EIWKtoZHCjsdh0jXuIGZYHyU5066PIredZukqVdtNm4=";
}; };
# Tests try to write to /tmp directly. use $TMPDIR instead. # Tests try to write to /tmp directly. use $TMPDIR instead.

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "coverage"; pname = "coverage";
version = "7.5.3"; version = "7.6.1";
pyproject = true; pyproject = true;
# uses f strings # uses f strings
@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-BK78pRkNHcelOkwaWn+FaIETBteo7iMcQvtpIVVxlE8="; hash = "sha256-lTUQ37exKradIBNaBmI5fwd8WbHmN5p2jpfFnYUu5R0=";
}; };
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];

View File

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cron-descriptor"; pname = "cron-descriptor";
version = "1.4.4"; version = "1.4.5";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Salamek"; owner = "Salamek";
repo = "cron-descriptor"; repo = "cron-descriptor";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-NKAfNwIRnND4ume27CSPJoib9DysbpdD905SNP+wx0A="; hash = "sha256-ElYma6RH2u1faIgOvGpMQA26dSIibWcO4mWU6NAA5PQ=";
}; };
# remove tests_require, as we don't do linting anyways # remove tests_require, as we don't do linting anyways

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