[python-updates] Recurse into python314Packages (#462746)

This commit is contained in:
Martin Weinelt
2025-11-25 22:47:28 +00:00
committed by GitHub
173 changed files with 2553 additions and 2188 deletions
@@ -23,11 +23,16 @@ maturinBuildHook() {
"--target" "@rustcTargetSpec@"
"--manylinux" "off"
"--strip"
"--release"
"--out" "$dist"
"--interpreter" "$interpreter_name"
)
if [ -n "${maturinBuildProfile}" ]; then
flagsArray+=("--profile" "${maturinBuildProfile}")
else
flagsArray+=("--release")
fi
concatTo flagsArray maturinBuildFlags
echoCmd 'maturinBuildHook flags' "${flagsArray[@]}"
+3 -3
View File
@@ -12,16 +12,16 @@
rustPlatform.buildRustPackage rec {
pname = "maturin";
version = "1.9.6";
version = "1.10.0";
src = fetchFromGitHub {
owner = "PyO3";
repo = "maturin";
rev = "v${version}";
hash = "sha256-hMMX59nq9Wusb0XZb8i5/EmQiPL4WopuZX7maycj0J4=";
hash = "sha256-txbMVkbws/3mvYsxf332WhTymsVdr6JlgQoi85e4pgE=";
};
cargoHash = "sha256-hNFbRtt/sVlEffu7RgXxC1NHzakP8miMyHIV/cf4sfM=";
cargoHash = "sha256-2eLzT9Ozz7p43hbysoE5isLuithqJhvo8TfRZnklzf4=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
+4
View File
@@ -63,6 +63,10 @@ let
null;
cargoRoot = if rustSupport then "rust" else null;
# enable building with Python 3.14
# FIXME remove once PyO3 is updated in Cargo.lock
env.PYO3_USE_ABI3_FORWARD_COMPATIBILITY = 1;
propagatedBuildInputs =
lib.optional re2Support google-re2
++ lib.optional gitSupport pygit2
+18 -1
View File
@@ -1,6 +1,6 @@
{
lib,
python3Packages,
python3,
fetchFromGitHub,
fetchpatch,
installShellFiles,
@@ -11,6 +11,23 @@
udevCheckHook,
}:
let
python = python3.override {
self = python;
packageOverrides = self: super: {
marshmallow = super.marshmallow.overridePythonAttrs (oldAttrs: rec {
version = "3.26.1";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow";
tag = version;
hash = "sha256-l5pEhv8D6jRlU24SlsGQEkXda/b7KUdP9mAqrZCbl38=";
};
});
};
};
python3Packages = python.pkgs;
in
with python3Packages;
buildPythonApplication rec {
pname = "platformio";
@@ -27,17 +27,17 @@ in
stdenv.mkDerivation rec {
pname = "sqlite${lib.optionalString interactive "-interactive"}";
version = "3.50.4";
version = "3.51.0";
# nixpkgs-update: no auto update
# NB! Make sure to update ./tools.nix src (in the same directory).
src = fetchurl {
url = "https://sqlite.org/2025/sqlite-autoconf-${archiveVersion version}.tar.gz";
hash = "sha256-o9tYehuS7l3awvZrPttBsm+chnJ1eC1Gw6CIl31qWxg=";
hash = "sha256-QuJt/dlqouaxsb5ciLCIf5lZCT9lDWk8sC65w20UbKU=";
};
docsrc = fetchurl {
url = "https://sqlite.org/2025/sqlite-doc-${archiveVersion version}.zip";
hash = "sha256-+KA89GFQAxDHp4XJ1vhhIayUZWAZgs3Kxt4MWYfb/C8=";
hash = "sha256-4+NAcVRyc84ClYZGDTPiU27Eb3+qiv4Kbpl1OTMVGXY=";
};
outputs = [
+2 -2
View File
@@ -19,14 +19,14 @@ let
}:
stdenv.mkDerivation rec {
inherit pname;
version = "3.50.4";
version = "3.51.0";
# nixpkgs-update: no auto update
src =
assert version == sqlite.version;
fetchurl {
url = "https://sqlite.org/2025/sqlite-src-${archiveVersion version}.zip";
hash = "sha256-t7TcBg82BTkC+2WzRLu+1ZLmSyKRomrAb+d+7Al4UOk=";
hash = "sha256-UzBxm4uAv1Y5kf96NzBSlD9TV6rnbNHzNn6rhF06dbc=";
};
nativeBuildInputs = [ unzip ];
@@ -103,8 +103,10 @@ buildPythonPackage rec {
optional-dependencies.speedups = [
aiodns
backports-zstd
(if isPyPy then brotlicffi else brotli)
]
++ lib.optionals (pythonOlder "3.14") [
backports-zstd
];
nativeCheckInputs = [
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
uv-build,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage rec {
pname = "annotated-doc";
version = "0.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "fastapi";
repo = "annotated-doc";
tag = version;
hash = "sha256-PFB+GqFRe5vF8xoWJPsXligSpzkUIt8TOqsmrKlfwyc=";
};
build-system = [
uv-build
];
nativeCheckInputs = [
pytestCheckHook
typing-extensions
];
pythonImportsCheck = [
"annotated_doc"
];
meta = {
description = "Document parameters, class attributes, return types, and variables inline, with Annotated";
homepage = "https://github.com/fastapi/annotated-doc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
@@ -77,6 +77,9 @@ buildPythonPackage rec {
pytestFlags = [
"-Wignore::trio.TrioDeprecationWarning"
# DeprecationWarning for asyncio.iscoroutinefunction is propagated from uvloop used internally
# https://github.com/agronholm/anyio/commit/e7bb0bd496b1ae0d1a81b86de72312d52e8135ed
"-Wignore::DeprecationWarning"
];
disabledTestMarks = [
@@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "apsw";
version = "3.48.0.0";
version = "3.51.0.0";
pyproject = true;
# https://github.com/rogerbinns/apsw/issues/548
src = fetchurl {
url = "https://github.com/rogerbinns/apsw/releases/download/${version}/apsw-${version}.tar.gz";
hash = "sha256-iwvUW6vOQu2EiUuYWVaz5D3ePSLrj81fmLxoGRaTzRk=";
hash = "sha256-8I1/HnGO9eOs9CUFwvN5BcpHtCxXD7qlF9WBA4E1Rls=";
};
build-system = [ setuptools ];
@@ -41,6 +41,11 @@ buildPythonPackage rec {
"test_old_example_file_name"
];
disabledTestPaths = [
# network access to install setuptools, likely due to pip update
"tests/test_examples.py"
];
pythonImportsCheck = [ "argparse_manpage" ];
optional-dependencies = {
@@ -1,30 +1,42 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "astor";
version = "0.8.1";
format = "setuptools";
version = "0.8.1-unstable-2024-03-30";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka";
src = fetchFromGitHub {
owner = "berkerpeksag";
repo = "astor";
rev = "df09001112f079db54e7c5358fa143e1e63e74c4";
hash = "sha256-VF+harl/q2yRU2yqN1Txud3YBNSeedQNw2SZNYQFsno=";
};
# disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
patches = [
# https://github.com/berkerpeksag/astor/pull/233
./python314-compat.patch
];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# https://github.com/berkerpeksag/astor/issues/196
"test_convert_stdlib"
# https://github.com/berkerpeksag/astor/issues/212
"test_huge_int"
];
passthru.updateScript = unstableGitUpdater {
branch = "master";
};
meta = with lib; {
description = "Library for reading, writing and rewriting python AST";
homepage = "https://github.com/berkerpeksag/astor";
@@ -0,0 +1,99 @@
From d0b5563cc1e263f08df9312d89a7691167448f4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 14 May 2025 19:52:30 +0200
Subject: [PATCH] Fix compatibility with Python 3.14 (mostly)
Fix the code and the test suite to work with Python 3.14, where
deprecated constant-like AST nodes were removed. Notably:
1. Skip tests for deprecated nodes in Python 3.14.
2. Use `ast.Constant` over `ast.Num` for non-deprecated code
in Python 3.6+.
3. Check for `ast.Str` only in Python < 3.14, and handle `ast.Constant`
being used to represent a string instead.
With these changes, all tests except for:
tests/test_rtrip.py::RtripTestCase::test_convert_stdlib
pass. However, this particular test also hanged for me with older Python
versions.
Related to #217
---
astor/code_gen.py | 9 +++++++--
tests/test_code_gen.py | 11 ++++++++---
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/astor/code_gen.py b/astor/code_gen.py
index b2bae12..4330f49 100644
--- a/astor/code_gen.py
+++ b/astor/code_gen.py
@@ -692,6 +692,7 @@ def _handle_string_constant(self, node, value, is_joined=False):
current_line = ''.join(current_line)
has_ast_constant = sys.version_info >= (3, 6)
+ has_ast_str = sys.version_info < (3, 14)
if is_joined:
# Handle new f-strings. This is a bit complicated, because
@@ -700,7 +701,7 @@ def _handle_string_constant(self, node, value, is_joined=False):
def recurse(node):
for value in node.values:
- if isinstance(value, ast.Str):
+ if has_ast_str and isinstance(value, ast.Str):
# Double up braces to escape them.
self.write(value.s.replace('{', '{{').replace('}', '}}'))
elif isinstance(value, ast.FormattedValue):
@@ -713,7 +714,11 @@ def recurse(node):
self.write(':')
recurse(value.format_spec)
elif has_ast_constant and isinstance(value, ast.Constant):
- self.write(value.value)
+ if isinstance(value.value, str):
+ # Double up braces to escape them.
+ self.write(value.value.replace('{', '{{').replace('}', '}}'))
+ else:
+ self.write(value.value)
else:
kind = type(value).__name__
assert False, 'Invalid node %s inside JoinedStr' % kind
diff --git a/tests/test_code_gen.py b/tests/test_code_gen.py
index e828eb9..1825030 100644
--- a/tests/test_code_gen.py
+++ b/tests/test_code_gen.py
@@ -28,7 +28,10 @@ def astorexpr(x):
return eval(astor.to_source(ast.Expression(body=x)))
def astornum(x):
- return astorexpr(ast.Num(n=x))
+ if sys.version_info >= (3, 6):
+ return astorexpr(ast.Constant(x))
+ else:
+ return astorexpr(ast.Num(n=x))
class Comparisons(object):
@@ -515,8 +518,8 @@ def test_deprecated_constants_as_name(self):
ast.Assign(targets=[ast.Name(id='spam')], value=ast.Name(id='None')),
"spam = None")
- @unittest.skipUnless(sys.version_info >= (3, 4),
- "ast.NameConstant introduced in Python 3.4")
+ @unittest.skipUnless((3, 4) <= sys.version_info < (3, 14),
+ "ast.NameConstant introduced in Python 3.4, removed in 3.14")
def test_deprecated_name_constants(self):
self.assertAstEqualsSource(
ast.Assign(targets=[ast.Name(id='spam')], value=ast.NameConstant(value=True)),
@@ -530,6 +533,8 @@ def test_deprecated_name_constants(self):
ast.Assign(targets=[ast.Name(id='spam')], value=ast.NameConstant(value=None)),
"spam = None")
+ @unittest.skipIf(sys.version_info >= (3, 14),
+ "Deprecated Constant nodes removed in Python 3.14")
def test_deprecated_constant_nodes(self):
self.assertAstEqualsSource(
ast.Assign(targets=[ast.Name(id='spam')], value=ast.Num(3)),
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "astroid";
version = "3.3.11"; # Check whether the version is compatible with pylint
version = "4.0.1"; # Check whether the version is compatible with pylint
pyproject = true;
disabled = pythonOlder "3.8";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "PyCQA";
repo = "astroid";
tag = "v${version}";
hash = "sha256-lv+BQDYP7N4UGMf7XhB6HVDORPU0kZQPYveQWOcAqfQ=";
hash = "sha256-Ulifj+ym0j0LqhmKPfM8vVCjz71Gwd483ke3PkMnHb8=";
};
nativeBuildInputs = [ setuptools ];
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "astropy-iers-data";
version = "0.2025.8.4.0.42.59";
version = "0.2025.11.24.0.39.11";
pyproject = true;
src = fetchFromGitHub {
owner = "astropy";
repo = "astropy-iers-data";
tag = "v${version}";
hash = "sha256-Izqm626PZzjnMNUzPW2x15ER7fn5f9+m2X434vXV/yo=";
hash = "sha256-B8568fGvS76igIlEWIbsTczQYqL0nPISM8rfUrF/DS4=";
};
build-system = [
@@ -29,6 +29,7 @@ buildPythonPackage rec {
doCheck = false;
meta = with lib; {
changelog = "https://github.com/astropy/astropy-iers-data/releases/tag/${src.tag}";
description = "IERS data maintained by @astrofrog and astropy.utils.iers maintainers";
homepage = "https://github.com/astropy/astropy-iers-data";
license = licenses.bsd3;
@@ -1,6 +1,6 @@
{
lib,
fetchPypi,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
@@ -55,14 +55,16 @@
buildPythonPackage rec {
pname = "astropy";
version = "7.1.0";
version = "7.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
inherit pname version;
hash = "sha256-yPJUMiKVsbjPJDA9bxVb9+/bbBKCiCuWbOMEDv+MU8U=";
src = fetchFromGitHub {
owner = "astropy";
repo = "astropy";
tag = "v${version}";
hash = "sha256-cvwwTa6eJYncB2V6UCuBrQ5WRRvjgZF5/z4d7Z/uHc8=";
};
env = lib.optionalAttrs stdenv.cc.isClang {
@@ -159,6 +161,7 @@ buildPythonPackage rec {
'';
meta = {
changelog = "https://docs.astropy.org/en/${src.tag}/changelog.html";
description = "Astronomy/Astrophysics library for Python";
homepage = "https://www.astropy.org";
license = lib.licenses.bsd3;
@@ -2,24 +2,25 @@
lib,
astroid,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "asttokens";
version = "3.0.0";
version = "3.0.0-unstable-2025-11-08";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dc2Lqo1isMHRGLOZst26PEr/Jx0Nep4NTBaBx5A1u8c=";
src = fetchFromGitHub {
owner = "gristlabs";
repo = "asttokens";
rev = "f859c055e8453650e1987c5aefaaec36582d3a07";
hash = "sha256-dHtKyd5rj1Y7m1vTL9toyQ+GLV5fBNUFNkBM9t4e8yM=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = "3.0.0";
build-system = [ setuptools-scm ];
nativeCheckInputs = [
@@ -3,6 +3,7 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
setuptools,
typing-extensions,
pytestCheckHook,
@@ -23,6 +24,15 @@ buildPythonPackage rec {
hash = "sha256-FJ1q6W9IYs0OSMZc+bI4v22hOAAWAv2OW3BAqixm8Hs=";
};
patches = [
(fetchpatch2 {
# https://github.com/aio-libs/async-lru/issues/635
name = "python314-compatibility.patch";
url = "https://github.com/aio-libs/async-lru/commit/4df3785d3e5210ce6277b3137c4625cd73918088.patch";
hash = "sha256-B9KCJPbiZTQJrnxC/7VI+jgr2PKfwOmS7naXZwKtF9c=";
})
];
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
@@ -10,13 +10,13 @@
buildPythonPackage rec {
pname = "attrs";
version = "25.3.0";
version = "25.4.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-ddfO/H+1dnR7LIG0RC1NShzgkAlzUnwBHRAw/Tv0rxs=";
hash = "sha256-FtWWm4fwhZ7zOkizXVWsG+bkKuSdXoU7WX23DDXFfhE=";
};
patches = [
@@ -36,7 +36,7 @@ buildPythonPackage rec {
postInstall = ''
# Install tests as the tests output.
mkdir $testout
cp -R conftest.py tests $testout
cp -R tests $testout
'';
pythonImportsCheck = [ "attr" ];
@@ -1,7 +1,6 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools-scm,
pyelftools,
@@ -17,14 +16,12 @@
buildPythonPackage rec {
pname = "auditwheel";
version = "6.4.2";
version = "6.5.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-t6Ya/JGDtrXGYd5ZylhvnHIARFpAnFjN8gSdb3FjbVE=";
hash = "sha256-T7y9WFQFS7HdeHDbA3J7hxuWsYFH21cllWHAWGA5h9c=";
};
build-system = [ setuptools-scm ];
@@ -10,7 +10,7 @@
pytest-rerunfailures,
pytest-xdist,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
pyyaml,
setuptools,
typing-extensions,
@@ -18,16 +18,17 @@
buildPythonPackage rec {
pname = "aws-sam-translator";
version = "1.99.0";
version = "1.103.0";
pyproject = true;
disabled = pythonOlder "3.7";
# https://github.com/aws/serverless-application-model/issues/3831
disabled = pythonAtLeast "3.14";
src = fetchFromGitHub {
owner = "aws";
repo = "serverless-application-model";
tag = "v${version}";
hash = "sha256-Y82qN2bmzE5Xqz2wSw9lWItsPbsRevLL7FlLN0FGKs0=";
hash = "sha256-FW7tmXsD4VfR/c6IJUCvsYPYLIisaEqAhD0sp9ufA/s=";
};
postPatch = ''
@@ -20,6 +20,11 @@ buildPythonPackage rec {
hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
};
patches = [
# https://github.com/litl/backoff/pull/220
./python314-compat.patch
];
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
@@ -0,0 +1,108 @@
diff --git a/tests/test_backoff_async.py b/tests/test_backoff_async.py
index 226ef08..9298b5f 100644
--- a/tests/test_backoff_async.py
+++ b/tests/test_backoff_async.py
@@ -692,7 +692,7 @@ def test_on_predicate_on_regular_function_without_event_loop(monkeypatch):
monkeypatch.setattr('time.sleep', lambda x: None)
# Set default event loop to None.
- loop = asyncio.get_event_loop()
+ loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
try:
@@ -716,7 +716,7 @@ def test_on_exception_on_regular_function_without_event_loop(monkeypatch):
monkeypatch.setattr('time.sleep', lambda x: None)
# Set default event loop to None.
- loop = asyncio.get_event_loop()
+ loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
try:
From 401709d040df302cdf3cd4a7e0d7703c90ff2d9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= <edgarrm358@gmail.com>
Date: Thu, 17 Oct 2024 16:28:46 -0600
Subject: [PATCH] Use `inspect.iscoroutinefunction` instead of
`asyncio.iscoroutinefunction`
---
backoff/_async.py | 13 +++++++------
backoff/_decorator.py | 6 +++---
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/backoff/_async.py b/backoff/_async.py
index 82fd477..c24587c 100644
--- a/backoff/_async.py
+++ b/backoff/_async.py
@@ -1,5 +1,6 @@
# coding:utf-8
import datetime
+import inspect
import functools
import asyncio
from datetime import timedelta
@@ -8,7 +9,7 @@
def _ensure_coroutine(coro_or_func):
- if asyncio.iscoroutinefunction(coro_or_func):
+ if inspect.iscoroutinefunction(coro_or_func):
return coro_or_func
else:
@functools.wraps(coro_or_func)
@@ -47,10 +48,10 @@ def retry_predicate(target, wait_gen, predicate,
on_giveup = _ensure_coroutines(on_giveup)
# Easy to implement, please report if you need this.
- assert not asyncio.iscoroutinefunction(max_tries)
- assert not asyncio.iscoroutinefunction(jitter)
+ assert not inspect.iscoroutinefunction(max_tries)
+ assert not inspect.iscoroutinefunction(jitter)
- assert asyncio.iscoroutinefunction(target)
+ assert inspect.iscoroutinefunction(target)
@functools.wraps(target)
async def retry(*args, **kwargs):
@@ -124,8 +125,8 @@ def retry_exception(target, wait_gen, exception,
giveup = _ensure_coroutine(giveup)
# Easy to implement, please report if you need this.
- assert not asyncio.iscoroutinefunction(max_tries)
- assert not asyncio.iscoroutinefunction(jitter)
+ assert not inspect.iscoroutinefunction(max_tries)
+ assert not inspect.iscoroutinefunction(jitter)
@functools.wraps(target)
async def retry(*args, **kwargs):
diff --git a/backoff/_decorator.py b/backoff/_decorator.py
index 77ed8c2..ca5d0ff 100644
--- a/backoff/_decorator.py
+++ b/backoff/_decorator.py
@@ -1,5 +1,5 @@
# coding:utf-8
-import asyncio
+import inspect
import logging
import operator
from typing import Any, Callable, Iterable, Optional, Type, Union
@@ -98,7 +98,7 @@ def decorate(target):
log_level=giveup_log_level
)
- if asyncio.iscoroutinefunction(target):
+ if inspect.iscoroutinefunction(target):
retry = _async.retry_predicate
else:
retry = _sync.retry_predicate
@@ -198,7 +198,7 @@ def decorate(target):
log_level=giveup_log_level,
)
- if asyncio.iscoroutinefunction(target):
+ if inspect.iscoroutinefunction(target):
retry = _async.retry_exception
else:
retry = _sync.retry_exception
@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "backports-zstd";
version = "1.0.0";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
@@ -20,7 +20,7 @@ buildPythonPackage rec {
postFetch = ''
rm -r "$out/src/c/zstd"
'';
hash = "sha256-5t5ET8b65v4ArV9zrmu+kDXLG3QQRpMMZPSG+RRaCLk=";
hash = "sha256-qgPtLl8oPvM9XDlW72NNX1JqCxzcnLlHyUNNxU9e2PY=";
};
postPatch = ''
@@ -3,14 +3,16 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
humanfriendly,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "capturer";
version = "3.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "xolox";
@@ -19,7 +21,18 @@ buildPythonPackage rec {
sha256 = "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1";
};
propagatedBuildInputs = [ humanfriendly ];
patches = [
# https://github.com/xolox/python-capturer/pull/16
(fetchpatch {
name = "python314-compat.patch";
url = "https://github.com/xolox/python-capturer/commit/3d0a9a040ecaa78ce2d39ec76ff5084ee7be6653.patch";
hash = "sha256-NW+X6wdXMHSLswO7M7/YeIyHu+EDYTLJE/mBkqyhKUM=";
})
];
build-system = [ setuptools ];
dependencies = [ humanfriendly ];
# hangs on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
@@ -25,14 +25,14 @@
buildPythonPackage rec {
pname = "cattrs";
version = "25.1.1";
version = "25.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-attrs";
repo = "cattrs";
tag = "v${version}";
hash = "sha256-kaB/UJcd4E4PUkz6mD53lXtmj4Z4P+Tuu7bSljYVOO4=";
hash = "sha256-6oQblSanvSZOMD5ossCP7fNjyxF54SRbU1cQrW1I5Ps=";
};
build-system = [
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "ciso8601";
version = "2.3.2";
version = "2.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "closeio";
repo = "ciso8601";
tag = "v${version}";
hash = "sha256-oVnQ0vHhWs8spfOnJOgTJ6MAHcY8VGZHZ0E/T8JsKqE=";
hash = "sha256-14HiCn8BPALPaW53k118lHb5F4oG9mMNN6sdLdKB6v0=";
};
build-system = [ setuptools ];
@@ -5,6 +5,7 @@
fetchPypi,
rustPlatform,
libiconv,
cffi,
numpy,
scipy,
nix-update-script,
@@ -12,17 +13,17 @@
buildPythonPackage rec {
pname = "clarabel";
version = "0.10.0";
version = "0.11.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-qKIQUFj9fbVHGL5TxIcVpQkQUAsQ/wuPU4BDTmnBChA=";
hash = "sha256-58QcR/Dlmuq5mu//nlivSodT7lJpu+7L1VJvxvQblZg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-Ohbeavkayl6vMyYX9kVVLRddvVB9gWOxfzdWAOg+gac=";
hash = "sha256-Cmxbz1zPA/J7EeJhGfD4Zt+QvyJK6BOZ+YQAsf8H+is=";
};
nativeBuildInputs = with rustPlatform; [
@@ -32,7 +33,8 @@ buildPythonPackage rec {
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
propagatedBuildInputs = [
dependencies = [
cffi
numpy
scipy
];
@@ -18,23 +18,34 @@ let
"x86_64-darwin" = "macosx_11_0_universal2";
};
hashes = {
"39-x86_64-linux" = "sha256-uGbsxSHGfYVzRiy1YEkQMkJi2yPLdSj3fe3adp1WjP0=";
"310-x86_64-linux" = "sha256-1SO/1lpB3aRWisxFlt8K5lwFEOiDXjC4iQRai77L+8E=";
"311-x86_64-linux" = "sha256-99VdM1fAcuiblReWL5I8+H0psCKR00HYZr/wRGT7nd8=";
"312-x86_64-linux" = "sha256-bbggF4rGDrXOpSegreFHgK0H/z7xaR9hb7z6SYp7nlU=";
"313-x86_64-linux" = "sha256-M9/t7JgIjh7yiZeEq9K2tGQ4oLneVhXf0rUfL8p09Tg=";
"39-aarch64-linux" = "sha256-wuEncCbqWdqO72zovzHrmb34on73eaQgFBmQZdUnwkE=";
"310-aarch64-linux" = "sha256-uLHEEPcVakctNT428pNlaq0yKDpvMLynDP2lDobiebA=";
"311-aarch64-linux" = "sha256-d2A4mKP4Dlnm6J31wPyAHg8d5MjFF4wcREe5FVFeayU=";
"312-aarch64-linux" = "sha256-aW295fQogAjaVK6saHhduKsVsncIv4BsfRW6qHlyb3g=";
"313-aarch64-linux" = "sha256-mloW8TGkBJWXqO6xOqHhra3ZXuGQWf6dEGSrkdD0sb0=";
"39-darwin" = "sha256-uU9RGo5glYOPp8nEYqj4c1TB3Xa1KwrNWMqNDpJsSjY=";
"310-darwin" = "sha256-80U0geHKJLVhhmvHayXWHWaV9ifJjWtR9mbwCUDfPu0=";
"311-darwin" = "sha256-kM2YVzPa22QgIRV4zP4kcvTE8al/RW0Oo6lyxJl3JxU=";
"312-darwin" = "sha256-t4qbP5wqE8cgkvN+vG6zOeS+s5+U/GjmbeeHytIo9/o=";
"313-darwin" = "sha256-ds2kj87miODVUE8Lrjuzz8L+2HxaQ7jTxGQF0/Odrpg=";
};
key =
if stdenv.hostPlatform.isDarwin then
"${pythonVersionNoDot}-darwin"
else
"${pythonVersionNoDot}-${stdenv.hostPlatform.system}";
hash =
{
"39-x86_64-linux" = "sha256-uGbsxSHGfYVzRiy1YEkQMkJi2yPLdSj3fe3adp1WjP0=";
"310-x86_64-linux" = "sha256-1SO/1lpB3aRWisxFlt8K5lwFEOiDXjC4iQRai77L+8E=";
"311-x86_64-linux" = "sha256-99VdM1fAcuiblReWL5I8+H0psCKR00HYZr/wRGT7nd8=";
"312-x86_64-linux" = "sha256-bbggF4rGDrXOpSegreFHgK0H/z7xaR9hb7z6SYp7nlU=";
"313-x86_64-linux" = "sha256-M9/t7JgIjh7yiZeEq9K2tGQ4oLneVhXf0rUfL8p09Tg=";
"314-x86_64-linux" = "";
"39-aarch64-linux" = "sha256-wuEncCbqWdqO72zovzHrmb34on73eaQgFBmQZdUnwkE=";
"310-aarch64-linux" = "sha256-uLHEEPcVakctNT428pNlaq0yKDpvMLynDP2lDobiebA=";
"311-aarch64-linux" = "sha256-d2A4mKP4Dlnm6J31wPyAHg8d5MjFF4wcREe5FVFeayU=";
"312-aarch64-linux" = "sha256-aW295fQogAjaVK6saHhduKsVsncIv4BsfRW6qHlyb3g=";
"313-aarch64-linux" = "sha256-mloW8TGkBJWXqO6xOqHhra3ZXuGQWf6dEGSrkdD0sb0=";
"314-aarch64-linux" = "";
"39-darwin" = "sha256-uU9RGo5glYOPp8nEYqj4c1TB3Xa1KwrNWMqNDpJsSjY=";
"310-darwin" = "sha256-80U0geHKJLVhhmvHayXWHWaV9ifJjWtR9mbwCUDfPu0=";
"311-darwin" = "sha256-kM2YVzPa22QgIRV4zP4kcvTE8al/RW0Oo6lyxJl3JxU=";
"312-darwin" = "sha256-t4qbP5wqE8cgkvN+vG6zOeS+s5+U/GjmbeeHytIo9/o=";
"313-darwin" = "sha256-ds2kj87miODVUE8Lrjuzz8L+2HxaQ7jTxGQF0/Odrpg=";
"314-darwin" = "";
}
.key or (throw "clarifai-protocol: unsupported system/python (${key}) version combination");
in
buildPythonPackage rec {
pname = "clarifai-protocol";
@@ -49,12 +60,7 @@ buildPythonPackage rec {
abi = "cp${pythonVersionNoDot}";
dist = "cp${pythonVersionNoDot}";
platform = systemToPlatform.${stdenv.hostPlatform.system} or (throw "unsupported system");
hash =
if stdenv.hostPlatform.isDarwin then
hashes."${pythonVersionNoDot}-darwin"
else
hashes."${pythonVersionNoDot}-${stdenv.hostPlatform.system}"
or (throw "unsupported system/python version combination");
inherit hash;
};
nativeBuildInputs = [
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "cloudpickle";
version = "3.1.1";
version = "3.1.2";
pyproject = true;
disabled = pythonOlder "3.6";
@@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "cloudpipe";
repo = "cloudpickle";
tag = "v${version}";
hash = "sha256-e8kEznjuIrdjNsXwXJO3lcEEpiCR+UQzXnGrTarUb5E=";
hash = "sha256-BsCOEpNCNqq8PS+SdbzF1wq0LXEmtcHJs0pdt2qFw/w=";
};
nativeBuildInputs = [ flit-core ];
@@ -15,19 +15,19 @@
buildPythonPackage rec {
pname = "cmsis-pack-manager";
version = "0.5.2";
version = "0.6.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pyocd";
repo = "cmsis-pack-manager";
tag = "v${version}";
hash = "sha256-PeyJf3TGUxv8/MKIQUgWrenrK4Hb+4cvtDA2h3r6kGg=";
hash = "sha256-kb0VSg89qglL6Q5kx1nEN1OW1GYoccBTITtPw2/dXTY=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-OBh5WWSekrqdLLmxEXS0LfPIfy4QWKYgO+8o6PYWjN4=";
hash = "sha256-yRNSFlEwFhfkSNjbFHipVZvJZ40pKbI9HhLtciws7nc=";
};
nativeBuildInputs = [
@@ -22,7 +22,7 @@
buildPythonPackage rec {
pname = "cryptography";
version = "46.0.2";
version = "46.0.3";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -31,12 +31,12 @@ buildPythonPackage rec {
owner = "pyca";
repo = "cryptography";
tag = version;
hash = "sha256-gsEHKEYiMw2eliEpxwzFGDetOp77PivlMoBD3HBbbFA=";
hash = "sha256-6t7f/BaMkA24MY05B7aYa0myxnCjrCsh1qk6RgAjeQc=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-aCQzY2gBjVVwiqlqAxkH4y6yf4lqdQuSEnQSIjLPRJg=";
hash = "sha256-5ElDEl7MdcQfu/hy+POSBcvkNCFAMo6La5s6uRhZ/fM=";
};
postPatch = ''
@@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
gdb,
isPyPy,
ncurses,
numpy,
pkg-config,
@@ -16,31 +15,30 @@
buildPythonPackage rec {
pname = "cython";
version = "3.1.4";
version = "3.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "cython";
repo = "cython";
tag = version;
hash = "sha256-qFj7w0fQY6X1oADLsAgwFefzx92/Pmgv9j5S6v0sdPg=";
hash = "sha256-OB9DsGabbn5pE+8Ru29D3Jp9Wu+gwlHYYy79x+M+HPI=";
};
build-system = [
pkg-config
setuptools
];
nativeBuildInputs = [
pkg-config
];
nativeCheckInputs = [
gdb
numpy
ncurses
];
env = lib.optionalAttrs (!isPyPy) {
LC_ALL = "en_US.UTF-8";
};
# https://github.com/cython/cython/issues/2785
# Temporary solution
doCheck = false;
@@ -2,16 +2,15 @@
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "dacite";
version = "1.9.2";
format = "setuptools";
disabled = pythonOlder "3.6";
pyproject = true;
src = fetchFromGitHub {
owner = "konradhalas";
@@ -23,8 +22,14 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--benchmark-autosave --benchmark-json=benchmark.json" ""
''
+ lib.optionalString (pythonAtLeast "3.14") ''
substituteInPlace tests/core/test_union.py \
--replace-fail "typing.Union[int, str]" "int | str"
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dacite" ];
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
setuptools,
@@ -49,6 +50,12 @@ buildPythonPackage rec {
hash = "sha256-cU4w4dqJQ3ew+fRyD7Lc4URNfW738kKqls6k6j65pIo=";
};
# https://github.com/dask/dask/issues/12043
postPatch = lib.optionalString (pythonAtLeast "3.14") ''
substituteInPlace dask/dataframe/dask_expr/tests/_util.py \
--replace-fail "except AttributeError:" "except (AttributeError, pickle.PicklingError):"
'';
build-system = [
setuptools
setuptools-scm
@@ -112,6 +119,11 @@ buildPythonPackage rec {
"network"
];
# https://github.com/dask/dask/issues/12042
disabledTests = lib.optionals (pythonAtLeast "3.14") [
"test_multiple_repartition_partition_size"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
@@ -25,6 +25,10 @@ buildPythonPackage rec {
hash = "sha256-AH/T6pa/CHtQNox67fqqs/BBnUcmThvbnSHug2p33qM=";
};
patches = [
./marshmallow-4.0-compat.patch
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'documentation =' 'Documentation =' \
@@ -36,6 +40,8 @@ buildPythonPackage rec {
poetry-dynamic-versioning
];
pythonRelaxDeps = [ "marshmallow" ];
dependencies = [
typing-inspect
marshmallow
@@ -46,6 +52,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# fails to deserialize None with marshmallow 4.0
"test_deserialize"
];
disabledTestPaths = [
# fails with the following error and avoid dependency on mypy
# mypy_main(None, text_io, text_io, [__file__], clean_exit=True)
@@ -0,0 +1,62 @@
diff --git a/dataclasses_json/api.py b/dataclasses_json/api.py
index 3481e93..a19eb0a 100644
--- a/dataclasses_json/api.py
+++ b/dataclasses_json/api.py
@@ -79,7 +79,6 @@ class DataClassJsonMixin(abc.ABC):
only=None,
exclude=(),
many: bool = False,
- context=None,
load_only=(),
dump_only=(),
partial: bool = False,
@@ -95,7 +94,6 @@ class DataClassJsonMixin(abc.ABC):
return Schema(only=only,
exclude=exclude,
many=many,
- context=context,
load_only=load_only,
dump_only=dump_only,
partial=partial,
diff --git a/dataclasses_json/mm.py b/dataclasses_json/mm.py
index 9cfacf1..cecd3b0 100644
--- a/dataclasses_json/mm.py
+++ b/dataclasses_json/mm.py
@@ -248,7 +248,7 @@ def build_type(type_, options, mixin, field, cls):
options['field_many'] = bool(
_is_supported_generic(field.type) and _is_collection(
field.type))
- return fields.Nested(type_.schema(), **options)
+ return fields.Nested(type_.schema(), metadata=options)
else:
warnings.warn(f"Nested dataclass field {field.name} of type "
f"{field.type} detected in "
From b5ea169f19cea0e346ba152c75ab49802f307e5e Mon Sep 17 00:00:00 2001
From: Steven Packard <spackard1@bloomberg.net>
Date: Sat, 9 Apr 2022 03:37:52 -0400
Subject: [PATCH] fix(mm): Replace deprecated Marshmallow Field parameters
In Marshmallow 3.13.0, the `default` and `missing` parameters of the
`Field` object were deprecated and replaced with `dump_default` and
`load_default` respectively.
fixes: #328
---
dataclasses_json/mm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dataclasses_json/mm.py b/dataclasses_json/mm.py
index 9cfacf1d..b9e54d8e 100644
--- a/dataclasses_json/mm.py
+++ b/dataclasses_json/mm.py
@@ -305,7 +305,7 @@ def schema(cls, mixin, infer_missing):
else:
type_ = field.type
options: typing.Dict[str, typing.Any] = {}
- missing_key = 'missing' if infer_missing else 'default'
+ missing_key = 'load_default' if infer_missing else 'dump_default'
if field.default is not MISSING:
options[missing_key] = field.default
elif field.default_factory is not MISSING:
@@ -22,7 +22,7 @@
buildPythonPackage rec {
pname = "datafusion";
version = "50.0.0";
version = "50.1.0";
pyproject = true;
src = fetchFromGitHub {
@@ -32,12 +32,12 @@ buildPythonPackage rec {
tag = version;
# Fetch arrow-testing and parquet-testing (tests assets)
fetchSubmodules = true;
hash = "sha256-to1GJQqI4aJOW8pGhWvU44ePrRo0cgeNwEGRJlb9grM=";
hash = "sha256-+r3msFc9yu3aJBDRI66A/AIctCbLxfZB3Ur/raDV3x8=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname src version;
hash = "sha256-ZACp7bBLYKmuZVAWEa2YxoCbQqwALv2bWf+zz6jbV9w=";
hash = "sha256-XJ2x/EtMZu/fdS6XB/IydMfHmlaxEWJ3XJPY73WoGqs=";
};
nativeBuildInputs = with rustPlatform; [
@@ -7,24 +7,29 @@
pandas,
pyarrow,
pytest8_3CheckHook,
pythonOlder,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "db-dtypes";
version = "1.4.3";
version = "1.4.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-db-dtypes-pandas";
tag = "v${version}";
hash = "sha256-AyO/GwtExMWi4mB3OMtYPFvAVS/ylcBXGiGXgaScyCA=";
hash = "sha256-Aq/2yDyvUpLsGr+mmBDQpC9X1pWLpDtYD6qql2sgGNw=";
};
# https://github.com/googleapis/python-db-dtypes-pandas/pull/379
postPatch = lib.optionalString (pythonAtLeast "3.14") ''
substituteInPlace tests/unit/test_date.py \
--replace-fail '"year 10000 is out of range"' '"year must be in 1..9999, not 10000"' \
--replace-fail '"day is out of range for month"' '"day 99 must be in range 1..28 for month 2 in year 2021"'
'';
build-system = [ setuptools ];
dependencies = [
@@ -8,6 +8,8 @@
openssl,
stdenv,
libiconv,
opentelemetry-api,
opentelemetry-sdk,
pkg-config,
polars,
pytestCheckHook,
@@ -18,21 +20,22 @@
pandas,
deprecated,
azure-storage-blob,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "deltalake";
version = "1.1.4";
version = "1.2.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-LpeJUNQg4FC73LX2LjvpPTMctRarTJsWlM8aeIfGPiU=";
hash = "sha256-dqzkiWHeAbfXzEsaKyRiJx+0m/dIOMi9+gxjcuBT2QU=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-4VmNhUijQMC/Wazcx+uT7mQqD+wutXrBJ+HN3AyxQRw=";
hash = "sha256-MPwoGJ7xcsBRgaaM4jxhC6Vv2+Jhh0oYYtbji/Hc+vQ=";
};
env.OPENSSL_NO_VENDOR = 1;
@@ -51,25 +54,32 @@ buildPythonPackage rec {
nativeBuildInputs = [
pkg-config # openssl-sys needs this
writableTmpDirAsHomeHook
]
++ (with rustPlatform; [
cargoSetupHook
maturinBuildHook
]);
optional-dependencies = {
pandas = [ pandas ];
pyarrow = [ pyarrow ];
};
pythonImportsCheck = [ "deltalake" ];
nativeCheckInputs = [
pytestCheckHook
pandas
azure-storage-blob
opentelemetry-api
opentelemetry-sdk
polars
pytestCheckHook
pytest-benchmark
pytest-cov-stub
pytest-mock
pytest-timeout
azure-storage-blob
pyarrow
];
]
++ lib.flatten (lib.attrValues optional-dependencies);
preCheck = ''
# For paths in test to work, we have to be in python dir
@@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
# passthru tests
@@ -13,16 +12,14 @@
buildPythonPackage rec {
pname = "dill";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
version = "0.4.0-unstable-2025-11-09";
pyproject = true;
src = fetchFromGitHub {
owner = "uqfoundation";
repo = "dill";
tag = version;
hash = "sha256-RIyWTeIkK5cS4Fh3TK48XLa/EU9Iwlvcml0CTs5+Uh8=";
rev = "d948ecd748772f2812361982ec1496da0cd47b53";
hash = "sha256-/A84BpZnwSwsEYqLL0Xdf8OjJtg1UMu6dig3QEN+n1A=";
};
nativeBuildInputs = [ setuptools ];
@@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "dissect-cstruct";
version = "4.5";
version = "4.6";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "fox-it";
repo = "dissect.cstruct";
tag = version;
hash = "sha256-2n7y6nHt7gJtJeJIKpobiC7A+dnD6O/o+psinfOnvT8=";
hash = "sha256-emxIFHSKAv4Fpzc5vQAkLaG91ezIszDnLKX8thVQKeo=";
};
build-system = [
@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "dissect-etl";
version = "3.11";
version = "3.13";
pyproject = true;
disabled = pythonOlder "3.10";
@@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "fox-it";
repo = "dissect.etl";
tag = version;
hash = "sha256-soJH7kx/029yXyOjv6OsWjWAMMHXKx711GLPBClDAK0=";
hash = "sha256-UzbQyCUhMGHjmSzTmSrZZt+73gByMqokoPm6UDEA9F4=";
};
build-system = [
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools-scm,
setuptools,
python,
@@ -61,6 +62,11 @@ buildPythonPackage {
# jaraco-path depends ob pyobjc
doCheck = !stdenv.hostPlatform.isDarwin;
disabledTests = lib.optionals (pythonAtLeast "3.14") [
# AssertionError: assert '(?s:foo[^/]*)\\z' == '(?s:foo[^/]*)\\Z'
"test_glob_to_re"
];
meta = {
description = "Distutils as found in cpython";
homepage = "https://github.com/pypa/distutils";
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
uv-build,
@@ -17,24 +16,16 @@
buildPythonPackage rec {
pname = "django-bootstrap3";
version = "25.2";
version = "25.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap3";
tag = "v${version}";
hash = "sha256-TaB2PeBjmCNFuEZ+To2Q3C6zlFCaaTB70LxQWWb5AEo=";
hash = "sha256-OCr25Sc5fbL5ivrM2LpDAcTj8bPX4Q23Yj1j6jRG03U=";
};
patches = [
(fetchpatch2 {
name = "uv-build.patch";
url = "https://github.com/zostera/django-bootstrap3/commit/5e1a86549e9607b8e2a9772a3a839fc81b9ae6c0.patch?full_index=1";
hash = "sha256-VcRC7ehyVTl0KuovD8tNCbZnKXKCOGpux1XXUOoDaTw=";
})
];
build-system = [ uv-build ];
dependencies = [ django ];
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
uv-build,
@@ -20,24 +19,16 @@
buildPythonPackage rec {
pname = "django-bootstrap4";
version = "25.2";
version = "25.3";
pyproject = true;
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap4";
tag = "v${version}";
hash = "sha256-+G9UHW4eUGl00A/kDj+iTP7ehjj/dwUENKffvGxE6/4=";
hash = "sha256-aayR9yXsC1Kt4PtlhhdnaPA5cqYuL4CV0UY1fvA/ntk=";
};
patches = [
(fetchpatch2 {
name = "uv-build.patch";
url = "https://github.com/zostera/django-bootstrap4/commit/09b14bc9b70e7da92200c4bc014e2d3c597f0ea6.patch?full_index=1";
hash = "sha256-ZW9y8n0ZCOP37EoP32e7ue6h93KgGw1pW8Q1Q8IuNk8=";
})
];
build-system = [ uv-build ];
dependencies = [ beautifulsoup4 ];
@@ -64,6 +64,7 @@ buildPythonPackage rec {
homepage = "https://gitlab.com/mailman/django-mailman3";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ qyliss ];
broken = lib.versionAtLeast django-allauth.version "65.0.0";
broken =
lib.versionAtLeast django-allauth.version "65.0.0" || lib.versionAtLeast django.version "5.1";
};
}
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "django-ninja";
version = "1.4.3t";
version = "1.4.5";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "vitalik";
repo = "django-ninja";
tag = "v${version}";
hash = "sha256-IiOj2fBuClHyIdn/r3XxKwO+DyrgahagUKrxp+YKZ4E=";
hash = "sha256-C54Y5Rmhk9trEeNhE+i3aeKcnoeUc6BqFbp3dzL9xjA=";
};
build-system = [ flit-core ];
+1 -1
View File
@@ -48,7 +48,7 @@ buildPythonPackage rec {
version = "4.2.26";
format = "pyproject";
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.8" || pythonAtLeast "3.14";
src = fetchFromGitHub {
owner = "django";
@@ -2,26 +2,23 @@
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
hatchling,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "docstring-parser";
version = "0.16";
version = "0.17.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rr-";
repo = "docstring_parser";
tag = version;
hash = "sha256-xwV+mgCOC/MyCqGELkJVqQ3p2g2yw/Ieomc7k0HMXms=";
hash = "sha256-hR+i1HU/ZpN6I3a8k/Wv2OrXgB4ls/A5OHZRqxEZS78=";
};
build-system = [ poetry-core ];
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
@@ -3,7 +3,6 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
cmake,
ninja,
duckdb,
@@ -16,6 +15,7 @@
psutil,
pyarrow,
pybind11,
pytz,
scikit-build-core,
setuptools-scm,
pytest-reraise,
@@ -73,16 +73,11 @@ buildPythonPackage rec {
];
optional-dependencies = {
# Note: ipython and adbc_driver_manager currently excluded despite inclusion in upstream
# https://github.com/duckdb/duckdb-python/blob/v1.4.0/pyproject.toml#L44-L52
all = [
# FIXME package adbc_driver_manager
ipython
fsspec
numpy
]
++ lib.optionals (pythonOlder "3.14") [
# https://github.com/duckdb/duckdb-python/blob/0ee500cfa35fc07bf81ed02e8ab6984ea1f665fd/pyproject.toml#L49-L51
# adbc_driver_manager noted for migration to duckdb C source
pandas
pyarrow
];
@@ -105,6 +100,7 @@ buildPythonPackage rec {
psutil
pytest-reraise
pytestCheckHook
pytz
]
++ optional-dependencies.all;
@@ -2,24 +2,24 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "eradicate";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
version = "3.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "wemake-services";
repo = "eradicate";
tag = version;
hash = "sha256-V3g9qYM/TiOz83IMoUwu0CvFWBxB5Yk3Dy3G/Dz3vYw=";
hash = "sha256-D9V9PQ3HVmShmPgTInOJaVmujy1fQyQn6qYn/Pa0kMg=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "eradicate" ];
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitLab,
fetchpatch,
lxml,
pytestCheckHook,
pythonOlder,
@@ -23,6 +24,14 @@ buildPythonPackage rec {
hash = "sha256-JZ1fJ9o4/Z+9uSlaoq+pNpLSwl5Yv6BJCI1G7GOaQ1I=";
};
patches = [
(fetchpatch {
# python 3.14 compat
url = "https://foss.heptapod.net/openpyxl/et_xmlfile/-/commit/73172a7ce6d819ce13e6706f9a1c6d50f1646dde.patch";
hash = "sha256-PMtzIGtXJ/vp0VRmBodvyaG/Ptn2DwrTTC1EyLSChHU=";
})
];
build-system = [ setuptools ];
nativeCheckInputs = [
@@ -8,14 +8,14 @@
}:
buildPythonPackage rec {
pname = "eval-type-backport";
version = "0.2.2";
version = "0.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "eval_type_backport";
tag = "v${version}";
hash = "sha256-r+JiPBcU/6li9R/CQP0CKoWJiMgky03GKrMIsmaSJEk=";
hash = "sha256-K+FrgRyxCbrKHcrUaHEJWlLp2i0xes3HwXPN9ucioZY=";
};
nativeBuildInputs = [
@@ -22,24 +22,24 @@
buildPythonPackage rec {
pname = "eventlet";
version = "0.40.0";
version = "0.40.3";
pyproject = true;
src = fetchFromGitHub {
owner = "eventlet";
repo = "eventlet";
tag = version;
hash = "sha256-fzCN+idYQ97nuDVfYn6VYQFBaaMxmnjWzFrmn+Aj+u4=";
hash = "sha256-yieyNx91jvKoh02zDFIEFk70yf3I27DWiumqoOjtdzQ=";
};
pythonRelaxDeps = lib.optionals isPyPy [ "greenlet" ];
nativeBuildInputs = [
build-system = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
dependencies = [
dnspython
greenlet
six
@@ -78,7 +78,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "eventlet" ];
meta = with lib; {
changelog = "https://github.com/eventlet/eventlet/blob/v${version}/NEWS";
changelog = "https://github.com/eventlet/eventlet/blob/${src.tag}/NEWS";
description = "Concurrent networking library for Python";
homepage = "https://github.com/eventlet/eventlet/";
license = licenses.mit;
@@ -31,6 +31,12 @@ buildPythonPackage rec {
doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest
disabledTests = lib.optionals (pythonAtLeast "3.14") [
# RecursionError not raised
"test_deep_split"
"test_deep_subgroup"
];
pythonImportsCheck = [ "exceptiongroup" ];
meta = with lib; {
@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonAtLeast,
pythonOlder,
@@ -19,26 +18,16 @@
buildPythonPackage rec {
pname = "executing";
version = "2.2.0";
version = "2.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "executing";
rev = "v${version}";
hash = "sha256-2BT4VTZBAJx8Gk4qTTyhSoBMjJvKzmL4PO8IfTpN+2g=";
hash = "sha256-UlXuXBW9TmJ0xG/0yMdx8EDQDSzVgtsgFJIj/O7pmio=";
};
patches = [
(fetchpatch {
name = "pytest-8.4.1-compat.patch";
url = "https://github.com/alexmojaki/executing/commit/fae0dd2f4bd0e74b8a928e19407fd4167f4b2295.patch";
hash = "sha256-ccYBeP4yXf3U4sRyeGUYhLz7QHbXFiMviQ1n+AIVMdo=";
})
];
build-system = [
setuptools
setuptools-scm
@@ -59,9 +48,6 @@ buildPythonPackage rec {
# if the test runs fast enough. That makes the test flaky when
# running on slow systems or cross- / emulated building
"test_many_source_for_filename_calls"
# https://github.com/alexmojaki/executing/issues/91
"test_exception_catching"
];
pythonImportsCheck = [ "executing" ];
@@ -8,6 +8,7 @@
pdm-backend,
# dependencies
annotated-doc,
starlette,
pydantic,
typing-extensions,
@@ -18,6 +19,7 @@
flask,
inline-snapshot,
passlib,
pwdlib,
pyjwt,
pytest-asyncio,
pytestCheckHook,
@@ -41,7 +43,7 @@
buildPythonPackage rec {
pname = "fastapi";
version = "0.116.1";
version = "0.121.1";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -50,7 +52,7 @@ buildPythonPackage rec {
owner = "tiangolo";
repo = "fastapi";
tag = version;
hash = "sha256-sd0SnaxuuF3Zaxx7rffn4ttBpRmWQoOtXln/amx9rII=";
hash = "sha256-uUUARIHY8VBoLfWfMvveapypqiB00cTTWpJ4fi9nvUo=";
};
build-system = [ pdm-backend ];
@@ -61,6 +63,7 @@ buildPythonPackage rec {
];
dependencies = [
annotated-doc
starlette
pydantic
typing-extensions
@@ -103,6 +106,7 @@ buildPythonPackage rec {
flask
inline-snapshot
passlib
pwdlib
pyjwt
pytestCheckHook
pytest-asyncio
@@ -10,13 +10,13 @@
}:
let
pname = "fastcrc";
version = "0.3.2";
version = "0.3.4";
src = fetchFromGitHub {
owner = "overcat";
repo = "fastcrc";
tag = "v${version}";
hash = "sha256-yLrv/zqsjgygJAIJtztwxlm4s9o9EBVsCyx1jUXd7hA=";
hash = "sha256-iBbYiF0y/3Cax4P9+/gKS6FUBqZ3BleCwnpItsVd7Ps=";
};
in
buildPythonPackage {
@@ -32,7 +32,7 @@ buildPythonPackage {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-9Vap8E71TkBIf4eIB2lapUqcMukdsHX4LR7U8AD77SU=";
hash = "sha256-VbS5xTqj+Flxxdg06MO34AZCVozlNgFvc+yKemEmCzs=";
};
pythonImportsCheck = [ "fastcrc" ];
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "freezegun";
version = "1.5.4";
version = "1.5.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-eYuTcv3U2QfzPotqWLxk5oLZ/6jUlM5g94AZfugfrtE=";
hash = "sha256-rHdCpsxsJaLDXpKS39VUuJe1F9LewmiRoujevyBcuUo=";
};
build-system = [ setuptools ];
@@ -8,7 +8,7 @@
psutil,
pyftpdlib,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
pytz,
setuptools,
six,
@@ -19,7 +19,8 @@ buildPythonPackage rec {
version = "2.4.16";
pyproject = true;
disabled = pythonOlder "3.8";
# https://github.com/PyFilesystem/pyfilesystem2/issues/596
disabled = pythonAtLeast "3.14";
src = fetchPypi {
inherit pname version;
@@ -38,14 +38,14 @@
buildPythonPackage rec {
pname = "fsspec";
version = "2025.3.2";
version = "2025.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fsspec";
repo = "filesystem_spec";
tag = version;
hash = "sha256-FsgDILnnr+WApoTv/y1zVFSeBNysvkizdKtMeRegbfI=";
hash = "sha256-rIn2m3lRhlJwkB54X4sRT9JH+e4pIIEt7dPjnknczjs=";
};
build-system = [
@@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "gb-io";
version = "0.3.6";
version = "0.3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "althonos";
repo = "gb-io.py";
rev = "v${version}";
hash = "sha256-iLRXyiVji9q4C5YtBsTT9bklSueY9RlX7Kz4cu+hmpE=";
hash = "sha256-ArJTK6YcuyExIMBUYBxpr7TpKeVMF6Nk4ObAZLuOgJA=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
@@ -27,7 +27,7 @@ buildPythonPackage rec {
src
sourceRoot
;
hash = "sha256-miwCgZpaFVMaNJLUTYSGEkmg+uT7lbzJZnBa9yZqC8U=";
hash = "sha256-3mgvT8b4tpoUScs5yk6IbGBUJ/czu3XSdFXhfT/c5S8=";
};
sourceRoot = src.name;
@@ -20,7 +20,7 @@
buildPythonPackage rec {
pname = "gcsfs";
version = "2025.3.2";
version = "2025.10.0";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -29,7 +29,7 @@ buildPythonPackage rec {
owner = "fsspec";
repo = "gcsfs";
tag = version;
hash = "sha256-aXBlj9ej3Ya7h4x/akl/iX6dDS/SgkkEsOQ2E9KmCDU=";
hash = "sha256-Co98M3zK839mIWhV1Sifyb9r0sy1BjX6stDIj/0ONYo=";
};
build-system = [
@@ -2,31 +2,22 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "geojson";
version = "3.1.0";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "geojson";
tag = version;
hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U=";
hash = "sha256-0p8FW9alcWCSdi66wanS/F9IgO714WIRQIXvg3f9op8=";
};
patches = [
(fetchpatch2 {
name = "dont-fail-with-python-313.patch";
url = "https://github.com/jazzband/geojson/commit/c13afff339e6b78f442785cc95f0eb66ddab3e7b.patch?full_index=1";
hash = "sha256-xdz96vzTA+zblJtCvXIZe5p51xJGM5eB/HAtCXgy5JA=";
})
];
build-system = [ setuptools ];
pythonImportsCheck = [ "geojson" ];
@@ -4,29 +4,21 @@
fetchFromGitHub,
gevent,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "gipc";
version = "1.6.0";
version = "1.8.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jgehrcke";
repo = "gipc";
tag = version;
hash = "sha256-eYE7A1VDJ0NSshvdJKxPwGyVdW6BnyWoRSR1i1iTr8Y=";
hash = "sha256-P3soMA/EBMuhkXQsiLv9gnDBfo9XGosKnSMi+EZ0gaM=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "gevent>=1.5,<=23.9.1" "gevent>=1.5"
'';
build-system = [ setuptools ];
dependencies = [ gevent ];
@@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "granian";
version = "2.5.6";
version = "2.5.7";
pyproject = true;
src = fetchFromGitHub {
owner = "emmett-framework";
repo = "granian";
tag = "v${version}";
hash = "sha256-XSDBSl7QWqIN5u48z4H5yPHR+ltRmmmrP0JSmvcCcsA=";
hash = "sha256-IXL4T3y7OBU+/Kv1593NHaS6fKG+a3SkEWdNVDSuKKA=";
};
# Granian forces a custom allocator for all the things it runs,
@@ -39,7 +39,7 @@ buildPythonPackage rec {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-zQAHJcBWNx5IT/t2wtm7UeOfVNnvfowcp137TePnwiM=";
hash = "sha256-xqAUspCRKQfXa8sPJ/ZbgOXrds7KdTUKBk0k4085wMo=";
};
nativeBuildInputs = with rustPlatform; [
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
replaceVars,
graphviz-nox,
xdg-utils,
@@ -33,6 +34,11 @@ buildPythonPackage rec {
graphviz = graphviz-nox;
xdgutils = xdg-utils;
})
(fetchpatch {
# python314 compat; https://github.com/xflr6/graphviz/pull/238
url = "https://github.com/xflr6/graphviz/commit/7e0fae6d28792a628a25cadd4ec1582c7351a7a3.patch";
hash = "sha256-cZhNsQFi30uFpPXbEJHQ9eol7g6pdv6w8kp1GxLTBD4=";
})
];
# Fontconfig error: Cannot load default config file
+190 -369
View File
@@ -1,104 +1,99 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "android-tzdata"
version = "0.1.1"
name = "anstream"
version = "0.6.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
dependencies = [
"libc",
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
"is_terminal_polyfill",
"utf8parse",
]
[[package]]
name = "ansi_term"
version = "0.12.1"
name = "anstyle"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
[[package]]
name = "anstyle-parse"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
dependencies = [
"winapi",
"utf8parse",
]
[[package]]
name = "atty"
version = "0.2.14"
name = "anstyle-query"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2"
dependencies = [
"hermit-abi",
"libc",
"winapi",
"windows-sys",
]
[[package]]
name = "anstyle-wincon"
version = "3.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a"
dependencies = [
"anstyle",
"once_cell_polyfill",
"windows-sys",
]
[[package]]
name = "autocfg"
version = "1.3.0"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bumpalo"
version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
[[package]]
name = "cc"
version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74b6a57f98764a267ff415d50a25e6e166f3831a5071af4995296ea97d210490"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "cfg-if"
version = "1.0.0"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"wasm-bindgen",
"windows-targets",
]
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "clap"
version = "2.34.0"
version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5"
dependencies = [
"ansi_term",
"atty",
"bitflags",
"strsim",
"textwrap",
"unicode-width",
"vec_map",
"clap_builder",
]
[[package]]
name = "clap_builder"
version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
"strsim",
]
[[package]]
name = "clap_lex"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
[[package]]
name = "cli"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"clap",
"network_partitions",
@@ -107,16 +102,16 @@ dependencies = [
]
[[package]]
name = "core-foundation-sys"
version = "0.8.6"
name = "colorchoice"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "getrandom"
version = "0.2.15"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
dependencies = [
"cfg-if",
"libc",
@@ -125,9 +120,8 @@ dependencies = [
[[package]]
name = "graspologic_native"
version = "1.2.1"
version = "1.2.5"
dependencies = [
"chrono",
"network_partitions",
"pyo3",
"rand",
@@ -135,242 +129,153 @@ dependencies = [
]
[[package]]
name = "hermit-abi"
version = "0.1.19"
name = "heck"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "iana-time-zone"
version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
"windows-core",
]
[[package]]
name = "iana-time-zone-haiku"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
dependencies = [
"cc",
]
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "indoc"
version = "0.3.6"
version = "2.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47741a8bc60fb26eb8d6e0238bbb26d8575ff623fdc97b1a2c00c050b9684ed8"
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
dependencies = [
"indoc-impl",
"proc-macro-hack",
"rustversion",
]
[[package]]
name = "indoc-impl"
version = "0.3.6"
name = "is_terminal_polyfill"
version = "1.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce046d161f000fffde5f432a0d034d0341dc152643b2598ed5bfce44c4f3a8f0"
dependencies = [
"proc-macro-hack",
"proc-macro2",
"quote",
"syn 1.0.109",
"unindent",
]
[[package]]
name = "instant"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
dependencies = [
"cfg-if",
]
[[package]]
name = "js-sys"
version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
dependencies = [
"wasm-bindgen",
]
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
[[package]]
name = "libc"
version = "0.2.155"
version = "0.2.177"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
[[package]]
name = "lock_api"
version = "0.4.12"
name = "memoffset"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]]
name = "network_partitions"
version = "0.1.0"
dependencies = [
"chrono",
"rand",
"rand_xorshift",
]
[[package]]
name = "num-traits"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
]
[[package]]
name = "once_cell"
version = "1.19.0"
version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "parking_lot"
version = "0.11.2"
name = "once_cell_polyfill"
version = "1.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api",
"parking_lot_core",
]
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]]
name = "parking_lot_core"
version = "0.8.6"
name = "portable-atomic"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall",
"smallvec",
"winapi",
]
[[package]]
name = "paste"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880"
dependencies = [
"paste-impl",
"proc-macro-hack",
]
[[package]]
name = "paste-impl"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6"
dependencies = [
"proc-macro-hack",
]
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]]
name = "ppv-lite86"
version = "0.2.17"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "proc-macro-hack"
version = "0.5.20+deprecated"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
dependencies = [
"zerocopy",
]
[[package]]
name = "proc-macro2"
version = "1.0.86"
version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
dependencies = [
"unicode-ident",
]
[[package]]
name = "pyo3"
version = "0.15.2"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d41d50a7271e08c7c8a54cd24af5d62f73ee3a6f6a314215281ebdec421d5752"
checksum = "e5203598f366b11a02b13aa20cab591229ff0a89fd121a308a5df751d5fc9219"
dependencies = [
"cfg-if",
"indoc",
"libc",
"parking_lot",
"paste",
"memoffset",
"once_cell",
"portable-atomic",
"pyo3-build-config",
"pyo3-ffi",
"pyo3-macros",
"unindent",
]
[[package]]
name = "pyo3-build-config"
version = "0.15.2"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "779239fc40b8e18bc8416d3a37d280ca9b9fb04bda54b98037bb6748595c2410"
checksum = "99636d423fa2ca130fa5acde3059308006d46f98caac629418e53f7ebb1e9999"
dependencies = [
"once_cell",
"target-lexicon",
]
[[package]]
name = "pyo3-ffi"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78f9cf92ba9c409279bc3305b5409d90db2d2c22392d443a87df3a1adad59e33"
dependencies = [
"libc",
"pyo3-build-config",
]
[[package]]
name = "pyo3-macros"
version = "0.15.2"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00b247e8c664be87998d8628e86f282c25066165f1f8dda66100c48202fdb93a"
checksum = "0b999cb1a6ce21f9a6b147dcf1be9ffedf02e0043aec74dc390f3007047cecd9"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
"quote",
"syn 1.0.109",
"syn",
]
[[package]]
name = "pyo3-macros-backend"
version = "0.15.2"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a8c2812c412e00e641d99eeb79dd478317d981d938aa60325dfa7157b607095"
checksum = "822ece1c7e1012745607d5cf0bcb2874769f0f7cb34c4cde03b9358eb9ef911a"
dependencies = [
"heck",
"proc-macro2",
"pyo3-build-config",
"quote",
"syn 1.0.109",
"syn",
]
[[package]]
name = "quote"
version = "1.0.36"
version = "1.0.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
dependencies = [
"proc-macro2",
]
@@ -415,37 +320,22 @@ dependencies = [
]
[[package]]
name = "redox_syscall"
version = "0.2.16"
name = "rustversion"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
]
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "smallvec"
version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "strsim"
version = "0.8.0"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "syn"
version = "1.0.109"
version = "2.0.110"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea"
dependencies = [
"proc-macro2",
"quote",
@@ -453,146 +343,57 @@ dependencies = [
]
[[package]]
name = "syn"
version = "2.0.69"
name = "target-lexicon"
version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "201fcda3845c23e8212cd466bfebf0bd20694490fc0356ae8e428e0824a915a6"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "textwrap"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
dependencies = [
"unicode-width",
]
checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
[[package]]
name = "unicode-ident"
version = "1.0.12"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "unicode-width"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
[[package]]
name = "unindent"
version = "0.1.11"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c"
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
[[package]]
name = "vec_map"
version = "0.8.2"
name = "utf8parse"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
version = "0.11.1+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasm-bindgen"
version = "0.2.92"
name = "windows-link"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
]
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.92"
name = "windows-sys"
version = "0.60.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn 2.0.69",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.69",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.92"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "winapi"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
[[package]]
name = "winapi-i686-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows-core"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-targets"
version = "0.52.6"
version = "0.53.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
dependencies = [
"windows-link",
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
@@ -605,48 +406,68 @@ dependencies = [
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
[[package]]
name = "zerocopy"
version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "graspologic-native";
version = "1.2.1";
version = "1.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "graspologic-org";
repo = "graspologic-native";
tag = version;
hash = "sha256-fgiBUzYBerYX59uj+I0Yret94vA+FpQK+MckskCBqj4=";
hash = "sha256-JIFg+JIxRKXgWLAGgOyKZTe2gXa8wZW5pEubTBLqwmQ=";
};
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
@@ -1,47 +1,48 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
fetchFromGitHub,
setuptools,
six,
webencodings,
mock,
pytest-expect,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "html5lib";
version = "1.1";
format = "setuptools";
version = "1.1-unstable-2024-02-21";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f";
src = fetchFromGitHub {
owner = "html5lib";
repo = "html5lib-python";
rev = "fd4f032bc090d44fb11a84b352dad7cbee0a4745";
hash = "sha256-Hyte1MEqlrD2enfunK1qtm3FJlUDqmhSyrCjo7VaBgA=";
};
patches = [
# Fix compatibility with pytest 6.
# Will be included in the next release after 1.1.
(fetchpatch {
url = "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch";
hash = "sha256-VGCeB6o2QO/skeCZs8XLPfgEYVOSRL8cCpG7ajbZWEs=";
})
# https://github.com/html5lib/html5lib-python/pull/583
./python314-compat.patch
];
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
six
webencodings
];
# latest release not compatible with pytest 6
doCheck = false;
nativeCheckInputs = [
mock
pytest-expect
pytestCheckHook
];
passthru.updateScript = unstableGitUpdater {
branch = "master";
};
meta = {
homepage = "https://github.com/html5lib/html5lib-python";
downloadPage = "https://github.com/html5lib/html5lib-python/releases";
@@ -0,0 +1,26 @@
From 379f9476c2a5ee370cd7ec856ee9092cace88499 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Wed, 30 Oct 2024 15:44:40 +0100
Subject: [PATCH] Avoid ast.Str on Python 3.8+
It has been deprecated since Python 3.8 and was removed from Python 3.14+.
---
setup.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 30ee0575..62272c18 100644
--- a/setup.py
+++ b/setup.py
@@ -93,8 +93,9 @@ def default_environment():
if (len(a.targets) == 1 and
isinstance(a.targets[0], ast.Name) and
a.targets[0].id == "__version__" and
- isinstance(a.value, ast.Str)):
- version = a.value.s
+ ((sys.version_info >= (3, 8) and isinstance(a.value, ast.Constant)) or
+ isinstance(a.value, ast.Str))):
+ version = a.value.value if sys.version_info >= (3, 8) else a.value.s
setup(name='html5lib',
version=version,
@@ -24,7 +24,7 @@
buildPythonPackage rec {
pname = "hypothesis";
version = "6.136.9";
version = "6.145.1";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -33,7 +33,7 @@ buildPythonPackage rec {
owner = "HypothesisWorks";
repo = "hypothesis";
tag = "hypothesis-python-${version}";
hash = "sha256-Q1wxIJwAYKZ0x6c85CJSGgcdKw9a3xFw8YpJROElSNU=";
hash = "sha256-xyUR3yY2tmF4LGhZRUlv6fdcfVyVWwukodA0WIW0bXU=";
};
# I tried to package sphinx-selective-exclude, but it throws
@@ -2,7 +2,7 @@
lib,
stdenv,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchFromGitHub,
# build-system
@@ -21,8 +21,6 @@ buildPythonPackage rec {
version = "0.19.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "davidhalter";
repo = "jedi";
@@ -57,6 +55,20 @@ buildPythonPackage rec {
"test_dict_completion"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
# Jedi.api.environment.InvalidPythonEnvironment: The python binary is potentially unsafe
"test/test_inference/test_sys_path.py::test_venv_and_pths"
"test/test_api/test_environment.py::test_create_environment_venv_path"
"test/test_api/test_environment.py::test_create_environment_executable"
# can't find system env nor venv
"test/test_api/test_environment.py::test_find_system_environments"
"test/test_api/test_environment.py::test_scanning_venvs"
# https://github.com/davidhalter/jedi/issues/2064
"test/test_api/test_interpreter.py::test_string_annotation"
# type repr mismatch: Union[Type, int] vs Type | int
"test/test_inference/test_mixed.py::test_compiled_signature_annotation_string"
];
meta = with lib; {
description = "Autocompletion tool for Python that can be used for text editors";
homepage = "https://github.com/davidhalter/jedi";
+131 -76
View File
@@ -1,12 +1,12 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "ahash"
version = "0.8.11"
version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
dependencies = [
"cfg-if",
"getrandom",
@@ -17,46 +17,63 @@ dependencies = [
[[package]]
name = "autocfg"
version = "1.4.0"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "cc"
version = "1.2.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35900b6c8d709fb1d854671ae27aeaa9eec2f8b01b364e1619a40da3e6fe2afe"
dependencies = [
"find-msvc-tools",
"shlex",
]
[[package]]
name = "cfg-if"
version = "1.0.0"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "csv"
version = "1.3.1"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf"
checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938"
dependencies = [
"csv-core",
"itoa",
"ryu",
"serde",
"serde_core",
]
[[package]]
name = "csv-core"
version = "0.1.11"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70"
checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782"
dependencies = [
"memchr",
]
[[package]]
name = "getrandom"
version = "0.2.15"
name = "find-msvc-tools"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
[[package]]
name = "getrandom"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
dependencies = [
"cfg-if",
"libc",
"wasi",
"r-efi",
"wasip2",
]
[[package]]
@@ -67,19 +84,22 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "indoc"
version = "2.0.5"
version = "2.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
dependencies = [
"rustversion",
]
[[package]]
name = "itoa"
version = "1.0.14"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
[[package]]
name = "jellyfish"
version = "1.1.2"
version = "1.2.1"
dependencies = [
"ahash",
"csv",
@@ -92,15 +112,15 @@ dependencies = [
[[package]]
name = "libc"
version = "0.2.169"
version = "0.2.177"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
[[package]]
name = "memchr"
version = "2.7.4"
version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
[[package]]
name = "memoffset"
@@ -122,32 +142,31 @@ dependencies = [
[[package]]
name = "once_cell"
version = "1.20.2"
version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "portable-atomic"
version = "1.10.0"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6"
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]]
name = "proc-macro2"
version = "1.0.92"
version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
dependencies = [
"unicode-ident",
]
[[package]]
name = "pyo3"
version = "0.22.6"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
dependencies = [
"cfg-if",
"indoc",
"libc",
"memoffset",
@@ -161,19 +180,19 @@ dependencies = [
[[package]]
name = "pyo3-build-config"
version = "0.22.6"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
dependencies = [
"once_cell",
"python3-dll-a",
"target-lexicon",
]
[[package]]
name = "pyo3-ffi"
version = "0.22.6"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
dependencies = [
"libc",
"pyo3-build-config",
@@ -181,9 +200,9 @@ dependencies = [
[[package]]
name = "pyo3-macros"
version = "0.22.6"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
@@ -193,9 +212,9 @@ dependencies = [
[[package]]
name = "pyo3-macros-backend"
version = "0.22.6"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
dependencies = [
"heck",
"proc-macro2",
@@ -205,34 +224,55 @@ dependencies = [
]
[[package]]
name = "quote"
version = "1.0.38"
name = "python3-dll-a"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
checksum = "d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8"
dependencies = [
"cc",
]
[[package]]
name = "quote"
version = "1.0.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
dependencies = [
"proc-macro2",
]
[[package]]
name = "ryu"
version = "1.0.18"
name = "r-efi"
version = "5.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
[[package]]
name = "serde"
version = "1.0.217"
name = "rustversion"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "ryu"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
[[package]]
name = "serde_core"
version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.217"
version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
@@ -240,16 +280,22 @@ dependencies = [
]
[[package]]
name = "smallvec"
version = "1.13.2"
name = "shlex"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "smallvec"
version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
[[package]]
name = "syn"
version = "2.0.95"
version = "2.0.110"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46f71c0377baf4ef1cc3e3402ded576dccc315800fbc62dfc7fe04b009773b4a"
checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea"
dependencies = [
"proc-macro2",
"quote",
@@ -258,15 +304,15 @@ dependencies = [
[[package]]
name = "target-lexicon"
version = "0.12.16"
version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
[[package]]
name = "tinyvec"
version = "1.8.1"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8"
checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
dependencies = [
"tinyvec_macros",
]
@@ -279,15 +325,15 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "unicode-ident"
version = "1.0.14"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
[[package]]
name = "unicode-normalization"
version = "0.1.24"
version = "0.1.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956"
checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8"
dependencies = [
"tinyvec",
]
@@ -300,9 +346,9 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
[[package]]
name = "unindent"
version = "0.2.3"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
[[package]]
name = "version_check"
@@ -311,25 +357,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
name = "wasip2"
version = "1.0.1+wasi-0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
dependencies = [
"wit-bindgen",
]
[[package]]
name = "wit-bindgen"
version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "zerocopy"
version = "0.7.35"
version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.35"
version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
dependencies = [
"proc-macro2",
"quote",
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "jellyfish";
version = "1.1.2";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.11";
@@ -20,8 +20,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jamesturk";
repo = "jellyfish";
rev = version;
hash = "sha256-xInjoTXYgZuHyvyKm+N4PAwHozE5BOkxoYhRzZnPs3Q=";
rev = "v${version}";
hash = "sha256-jKz7FYzV66TUkJZfWDTy8GXmTZ6SU5jEdtkjYLDfS/8=";
};
cargoDeps = rustPlatform.importCargoLock {
+46 -65
View File
@@ -17,9 +17,9 @@ dependencies = [
[[package]]
name = "aho-corasick"
version = "1.1.3"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
dependencies = [
"memchr",
]
@@ -74,9 +74,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
version = "1.2.41"
version = "1.2.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac9fe6cdbb24b6ade63616c0a0688e45bb56732262c158df3c0c4bea4ca47cb7"
checksum = "35900b6c8d709fb1d854671ae27aeaa9eec2f8b01b364e1619a40da3e6fe2afe"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -119,18 +119,18 @@ dependencies = [
[[package]]
name = "clap"
version = "4.5.50"
version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623"
checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
version = "4.5.50"
version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0"
checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a"
dependencies = [
"anstyle",
"clap_lex",
@@ -270,7 +270,7 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
[[package]]
name = "fuzz"
version = "0.11.1"
version = "0.12.0"
dependencies = [
"indexmap",
"jiter",
@@ -343,13 +343,13 @@ dependencies = [
[[package]]
name = "is-terminal"
version = "0.4.16"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9"
checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -369,7 +369,7 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
[[package]]
name = "jiter"
version = "0.11.1"
version = "0.12.0"
dependencies = [
"ahash",
"bitvec",
@@ -387,7 +387,7 @@ dependencies = [
[[package]]
name = "jiter-python"
version = "0.11.1"
version = "0.12.0"
dependencies = [
"jiter",
"pyo3",
@@ -405,9 +405,9 @@ dependencies = [
[[package]]
name = "js-sys"
version = "0.3.81"
version = "0.3.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -460,12 +460,6 @@ dependencies = [
"cc",
]
[[package]]
name = "log"
version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
[[package]]
name = "memchr"
version = "2.7.6"
@@ -563,23 +557,24 @@ checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]]
name = "proc-macro2"
version = "1.0.102"
version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e0f6df8eaa422d97d72edcd152e1451618fed47fabbdbd5a8864167b1d4aff7"
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
dependencies = [
"unicode-ident",
]
[[package]]
name = "pyo3"
version = "0.26.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
checksum = "37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf"
dependencies = [
"indoc",
"libc",
"memoffset",
"num-bigint",
"num-traits",
"once_cell",
"portable-atomic",
"pyo3-build-config",
@@ -590,9 +585,9 @@ dependencies = [
[[package]]
name = "pyo3-build-config"
version = "0.26.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
checksum = "f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb"
dependencies = [
"python3-dll-a",
"target-lexicon",
@@ -600,9 +595,9 @@ dependencies = [
[[package]]
name = "pyo3-ffi"
version = "0.26.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
checksum = "2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be"
dependencies = [
"libc",
"pyo3-build-config",
@@ -610,9 +605,9 @@ dependencies = [
[[package]]
name = "pyo3-macros"
version = "0.26.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
checksum = "eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
@@ -622,9 +617,9 @@ dependencies = [
[[package]]
name = "pyo3-macros-backend"
version = "0.26.0"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
checksum = "70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b"
dependencies = [
"heck",
"proc-macro2",
@@ -644,9 +639,9 @@ dependencies = [
[[package]]
name = "quote"
version = "1.0.41"
version = "1.0.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
dependencies = [
"proc-macro2",
]
@@ -791,9 +786,9 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
[[package]]
name = "syn"
version = "2.0.108"
version = "2.0.110"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da58917d35242480a05c2897064da0a80589a2a0476c9a3f2fdc83b53502e917"
checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea"
dependencies = [
"proc-macro2",
"quote",
@@ -824,9 +819,9 @@ dependencies = [
[[package]]
name = "unicode-ident"
version = "1.0.20"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "462eeb75aeb73aea900253ce739c8e18a67423fadf006037cd3ff27e82748a06"
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
[[package]]
name = "unindent"
@@ -872,9 +867,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
version = "0.2.104"
version = "0.2.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60"
dependencies = [
"cfg-if",
"once_cell",
@@ -883,25 +878,11 @@ dependencies = [
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
dependencies = [
"bumpalo",
"log",
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.104"
version = "0.2.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -909,31 +890,31 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.104"
version = "0.2.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.104"
version = "0.2.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76"
dependencies = [
"unicode-ident",
]
[[package]]
name = "web-sys"
version = "0.3.81"
version = "0.3.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120"
checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "jiter";
version = "0.11.1";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pydantic";
repo = "jiter";
tag = "v${version}";
hash = "sha256-/OSLwqSy/CkAFv0hn1zED70MRsWV8/NTrSfqP7OSRFc=";
hash = "sha256-d87RUXKEmZXxVQZnAvjwRKSP6F3Z+kXxg/LdY2l9B+k=";
};
postPatch = ''
@@ -1,6 +1,5 @@
{
lib,
pythonOlder,
stdenv,
buildPythonPackage,
fetchPypi,
@@ -35,14 +34,13 @@
buildPythonPackage rec {
pname = "jupyter-server";
version = "2.16.0";
version = "2.17.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "jupyter_server";
inherit version;
hash = "sha256-ZdS0T98ty73+CqGs5KhC1Kr3RqK3sWgTTVqu01Yht/Y=";
hash = "sha256-w46omFZpZMiItHcq4e1Y7KhFkuiCUdLPxNFx+B9+mdU=";
};
build-system = [
@@ -19,17 +19,21 @@
buildPythonPackage rec {
pname = "keyring";
version = "25.6.0";
version = "25.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jaraco";
repo = "keyring";
tag = "v${version}";
hash = "sha256-qu9HAlZMLlIVs8c9ClzWUljezhrt88gu1kouklMNxMY=";
hash = "sha256-v9s28vwx/5DJRa3dQyS/mdZppfvFcfBtafjBRi2c1oQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"coherent.licensed",' ""
'';
build-system = [ setuptools-scm ];
nativeBuildInputs = [
File diff suppressed because it is too large Load Diff
@@ -16,14 +16,14 @@
buildPythonPackage rec {
pname = "kornia-rs";
version = "0.1.9";
version = "0.1.10";
pyproject = true;
src = fetchFromGitHub {
owner = "kornia";
repo = "kornia-rs";
tag = "v${version}";
hash = "sha256-0Id1Iyd/xyqSqFvg/TXnlX1DgMUWuMS9KbtDXduwU+Y=";
hash = "sha256-rC5NqyQah3D4tGLefS4cSIXA3+gQ0+4RNcXOcEYxryg=";
};
nativeBuildInputs = [
@@ -22,6 +22,7 @@
# tests
aiohttp,
datafusion,
pandas,
polars,
pylance,
@@ -33,21 +34,21 @@
buildPythonPackage rec {
pname = "lancedb";
version = "0.21.2";
version = "0.25.3";
pyproject = true;
src = fetchFromGitHub {
owner = "lancedb";
repo = "lancedb";
tag = "python-v${version}";
hash = "sha256-ZPVkMlZz6lSF4ZCIX6fGcfCvni3kXCLPLXZqZw7icpE=";
hash = "sha256-2Kl1SikqiCXTYcja2mPnQQYxcRBjW2oW+o9PDaBbEoc=";
};
buildAndTestSubdir = "python";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-Q3ejJsddHLGGbw3peLRtjPqBrS6fNi0C3K2UWpcM/4k=";
hash = "sha256-1FllSQJySSwz4AYyQYAn3JGCmlp3atgDiiLRZeBedyU=";
};
build-system = [ rustPlatform.maturinBuildHook ];
@@ -80,6 +81,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
aiohttp
datafusion
duckdb
pandas
polars
@@ -3,14 +3,12 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
callPackage,
cargo,
hypothesmith,
isPy313,
libcst,
libiconv,
pytestCheckHook,
python,
pythonOlder,
pyyaml,
pyyaml-ft,
rustPlatform,
@@ -58,7 +56,7 @@ buildPythonPackage rec {
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
dependencies = [
(if pythonOlder "3.13" then pyyaml else pyyaml-ft)
(if isPy313 then pyyaml-ft else pyyaml)
];
nativeCheckInputs = [
@@ -3,24 +3,20 @@
stdenv,
buildPythonPackage,
colorama,
exceptiongroup,
fetchFromGitHub,
fetchpatch,
flit-core,
freezegun,
pytest-mypy-plugins,
pytest-xdist,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "loguru";
version = "0.7.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Delgan";
repo = "loguru";
@@ -28,6 +24,14 @@ buildPythonPackage rec {
hash = "sha256-tccEzzs9TtFAZM9s43cskF9llc81Ng28LqedjLiE1m4=";
};
patches = [
(fetchpatch {
# python 3.14 compat
url = "https://github.com/Delgan/loguru/commit/84023e2bd8339de95250470f422f096edcb8f7b7.patch";
hash = "sha256-yXRSwI7Yjm1myL20EoU/jVuEdadmbMlCpP19YKn1MAU=";
})
];
build-system = [ flit-core ];
nativeCheckInputs = [
@@ -36,8 +40,7 @@ buildPythonPackage rec {
colorama
freezegun
pytest-mypy-plugins
]
++ lib.optional (pythonOlder "3.10") exceptiongroup;
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_multiprocessing.py" ];
@@ -4,31 +4,26 @@
fetchFromGitHub,
pkgconfig,
psutil,
pytest-cov-stub,
pytestCheckHook,
python,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "lz4";
version = "4.4.4";
version = "4.4.4-unstable-2025-10-21";
pyproject = true;
disabled = pythonOlder "3.5";
# get full repository in order to run tests
src = fetchFromGitHub {
owner = "python-lz4";
repo = "python-lz4";
tag = "v${version}";
hash = "sha256-RoM2U47T5WLepJlbJhJAeqKRP8Zf3twndqmMSViI5Z8=";
rev = "59b2d8176072bdee50d38cc68ec65c33b928a980";
hash = "sha256-2D30n5j5r4+gcrjEXPu+WpZ4QsugCPyC1xCZuJIPcI0=";
};
postPatch = ''
sed -i '/pytest-cov/d' setup.py
'';
env.SETUPTOOLS_SCM_PRETEND_VERSION = "4.4.4";
build-system = [
pkgconfig
@@ -45,6 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
psutil
pytest-cov-stub
pytestCheckHook
];
@@ -60,7 +56,6 @@ buildPythonPackage rec {
meta = with lib; {
description = "LZ4 Bindings for Python";
homepage = "https://github.com/python-lz4/python-lz4";
changelog = "https://github.com/python-lz4/python-lz4/releases/tag/${src.tag}";
license = licenses.bsd3;
maintainers = [ ];
};
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "markdown";
version = "3.9.0";
version = "3.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Python-Markdown";
repo = "markdown";
tag = version;
hash = "sha256-wrDS7ajP031YKejD9Y83xg5bMl8ihBMSVZGov+1Y7Kg=";
hash = "sha256-GqYmlSNCJ8qLz4uJBJJAkiMwa+Q96f1S0jPuHrHwqpE=";
};
build-system = [ setuptools ];
@@ -35,6 +35,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "marshmallow" ];
meta = with lib; {
# https://github.com/Bachmann1234/marshmallow-polyfield/issues/45
broken = true;
description = "Extension to Marshmallow to allow for polymorphic fields";
homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
license = licenses.asl20;
@@ -3,27 +3,38 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
flit-core,
packaging,
# dependencies
backports-datetime-fromisoformat,
typing-extensions,
# tests
pytestCheckHook,
simplejson,
}:
buildPythonPackage rec {
pname = "marshmallow";
version = "3.26.1";
version = "4.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow";
tag = version;
hash = "sha256-l5pEhv8D6jRlU24SlsGQEkXda/b7KUdP9mAqrZCbl38=";
hash = "sha256-h1wkeJbJY/0K3Vpxz+Bc2/2PDWgOMqropG0XMBzAOq8=";
};
nativeBuildInputs = [ flit-core ];
build-system = [ flit-core ];
propagatedBuildInputs = [ packaging ];
dependencies = lib.optionals (pythonOlder "3.11") [
backports-datetime-fromisoformat
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
@@ -3,7 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
setuptools,
setuptools-scm,
}:
@@ -13,8 +13,6 @@ buildPythonPackage rec {
version = "1.6.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "erdewit";
repo = "nest_asyncio";
@@ -22,13 +20,17 @@ buildPythonPackage rec {
hash = "sha256-5I5WItOl1QpyI4OXZgZf8GiQ7Jlo+SJbDicIbernaU4=";
};
nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
"tests/nest_test.py::NestTest::test_timeout"
];
pythonImportsCheck = [ "nest_asyncio" ];
meta = with lib; {
@@ -9,12 +9,12 @@
}:
let
pname = "nh3";
version = "0.2.21";
version = "0.3.2";
src = fetchFromGitHub {
owner = "messense";
repo = "nh3";
rev = "v${version}";
hash = "sha256-DskjcKjdz1HmKzmA568zRCjh4UK1/LBD5cSIu7Rfwok=";
hash = "sha256-2D8ZLmVRA+SuMqeUsSXyY+0zlgqp7TSRyQuJMjmRVFk=";
};
in
buildPythonPackage {
@@ -24,7 +24,7 @@ buildPythonPackage {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-1Ytca/GiHidR8JOcz+DydN6N/iguLchbP8Wnrd/0NTk=";
hash = "sha256-dN6zdwMGh8stgDuGiO+T/ZZ3/3P9Wu/gUw5gHJ1pPGA=";
};
nativeBuildInputs = with rustPlatform; [
@@ -40,6 +40,13 @@ buildPythonPackage rec {
hash = "sha256-Q7Z6bq8TztNm2QLL7g23rOGnXVfiTDjquHAhcSWYlC4=";
};
postPatch = ''
# https://github.com/python-openapi/openapi-core/issues/1009
substituteInPlace tests/unit/extensions/test_factories.py \
--replace-fail 'assert test_model_class.__dataclass_fields__["name"].type == str(Any)' \
'assert str(test_model_class.__dataclass_fields__["name"].type) == str(Any)'
'';
build-system = [ poetry-core ];
pythonRelaxDeps = [
@@ -30,7 +30,7 @@
buildPythonPackage rec {
pname = "orjson";
version = "3.11.3";
version = "3.11.4";
pyproject = true;
disabled = pythonOlder "3.8";
@@ -39,7 +39,7 @@ buildPythonPackage rec {
owner = "ijl";
repo = "orjson";
tag = version;
hash = "sha256-oTrmDYmUHXMKxgxzBIStw7nnWXcyH9ir0ohnbX4bdjU=";
hash = "sha256-LK3Up6bAWZkou791nrA9iHlgfDLbk196iTn3CBfeyYc=";
};
patches = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
@@ -49,7 +49,7 @@ buildPythonPackage rec {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-y6FmK1RR1DAswVoTlnl19CmoYXAco1dY7lpV/KTypzE=";
hash = "sha256-TdZtbb9zR0T+0eauEgRVrDKN2eyCNfEQCJziPlKPWpI=";
};
nativeBuildInputs = [
File diff suppressed because it is too large Load Diff
@@ -34,7 +34,7 @@
buildPythonPackage rec {
pname = "outlines-core";
version = "0.2.11";
version = "0.2.13";
pyproject = true;
@@ -42,7 +42,7 @@ buildPythonPackage rec {
owner = "dottxt-ai";
repo = "outlines-core";
tag = version;
hash = "sha256-lLMTHFytJT2MhnzT0RlRCaSBPijA81fjxUqx4IGfVo8=";
hash = "sha256-mfw/cOLZPRcL3HWmrm/SyA0zDCPWr5F19EWIUdNu9jM=";
};
cargoDeps = rustPlatform.importCargoLock {
@@ -63,7 +63,7 @@
let
pandas = buildPythonPackage rec {
pname = "pandas";
version = "2.3.1";
version = "2.3.3";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -72,7 +72,7 @@ let
owner = "pandas-dev";
repo = "pandas";
tag = "v${version}";
hash = "sha256-xvdiWjJ5uHfrzXB7c4cYjFjZ6ue5i7qzb4tAEPJMAV0=";
hash = "sha256-jY1uM9HmJzoFk26ilbtzJnxAsQhmXS19r73JcFeFWRQ=";
};
# A NOTE regarding the Numpy version relaxing: Both Numpy versions 1.x &
@@ -1,34 +1,31 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "parso";
version = "0.8.4";
format = "setuptools";
disabled = pythonOlder "3.6";
version = "0.8.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-6zp7WCQPuZCZo0VXHe7MD5VA6l9N0v4UwqmdaygauS0=";
src = fetchFromGitHub {
owner = "davidhalter";
repo = "parso";
tag = "v${version}";
hash = "sha256-faSXCrOkybLr0bboF/8rPV/Humq8s158A3UOpdlYi0I=";
};
nativeCheckInputs = [ pytestCheckHook ];
build-system = [ setuptools ];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# python changed exception message format in 3.10, 3.10 not yet supported
"test_python_exception_matches"
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Python Parser";
homepage = "https://parso.readthedocs.io/en/latest/";
changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst";
changelog = "https://github.com/davidhalter/parso/blob/${src.tag}/CHANGELOG.rst";
license = licenses.mit;
};
}
@@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "pdm-backend";
version = "2.4.5";
version = "2.4.6";
pyproject = true;
src = fetchFromGitHub {
owner = "pdm-project";
repo = "pdm-backend";
tag = version;
hash = "sha256-tXgojVE/Bh2OVeMG/P5aCK5HEeUhiypUjTrS4yOwvZU=";
hash = "sha256-lR3ZxwPvyv/Ffez6cfz8Gzc6h4PeqmgsTGNEVv9K+tU=";
};
env.PDM_BUILD_SCM_VERSION = version;
@@ -27,21 +27,21 @@
buildPythonPackage rec {
pname = "pendulum";
version = "3.1.0";
version = "3.1.0-unstable-2025-10-28";
pyproject = true;
src = fetchFromGitHub {
owner = "sdispater";
repo = "pendulum";
tag = version;
hash = "sha256-ZjQaN5vT1+3UxwLNNsUmU4gSs6reUl90VSEumS0sEGY=";
rev = "2982f25feaad2e58ad1530d3b53cc30fc1c82bd6";
hash = "sha256-1ULvlWLZx3z5eGmWJfrN46x0ohJ+mAxipm6l6rykGPY=";
};
cargoRoot = "rust";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
sourceRoot = "${src.name}/rust";
hash = "sha256-F5bCuvI8DcyeUTS7UyYBixCjuGFKGOXPw8HLVlYKuxA=";
hash = "sha256-Ozg+TW/woJsqmbmyDsgdMua3Lmnn+KBvBhd9kVik3XY=";
};
nativeBuildInputs = [
@@ -4,8 +4,7 @@
buildPythonPackage,
build,
click,
fetchPypi,
fetchpatch,
fetchFromGitHub,
pep517,
pip,
pytest-xdist,
@@ -20,33 +19,22 @@
buildPythonPackage rec {
pname = "pip-tools";
version = "7.4.1";
version = "7.5.1-unstable-2025-11-08";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-hkgm9Qc4ZEUOJNvuuFzjkgzfsJhIo9aev1N7Uh8UvMk=";
src = fetchFromGitHub {
owner = "jazzband";
repo = "pip-tools";
rev = "785ed5e30f4c86c24141898553a356402b142adf";
hash = "sha256-2mYUjLqrpN/sjR79t/ZIfpvVXAgpk/tpZWFcT/6e7uk=";
};
patches = [
./fix-setup-py-bad-syntax-detection.patch
# Backport click 8.2 + 8.3 compatibility from 7.5.1
# We can't update to 7.5.1 because of https://github.com/jazzband/pip-tools/issues/2231,
# which breaks home-assisstant-chip-wheels.
(fetchpatch {
url = "https://github.com/jazzband/pip-tools/commit/c7f128e7c533033c2436b52c972eee521fe3890c.diff";
excludes = [ "pyproject.toml" ];
hash = "sha256-cIFAE/VKyyDWVQktPtPPuxY85DtTvH6pK539WD2cDn4=";
})
(fetchpatch {
url = "https://github.com/jazzband/pip-tools/commit/816ee196c543be53ddba0ea33fb4c7e84217b3b3.diff";
hash = "sha256-3GTUNWoy/AmpWv7NUCWIZ+coxb1vUgg6CZhwh6FehZo=";
})
];
env.SETUPTOOLS_SCM_PRETEND_VERSION = "7.5.1";
build-system = [ setuptools-scm ];
dependencies = [
@@ -80,6 +68,7 @@ buildPythonPackage rec {
"test_bad_setup_file"
# Assertion error
"test_compile_recursive_extras"
"test_compile_build_targets_setuptools_no_wheel_dep"
"test_combine_different_extras_of_the_same_package"
"test_diff_should_not_uninstall"
"test_cli_compile_all_extras_with_multiple_packages"

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