summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-24 14:28:57 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-20 20:11:17 +0100
commit03ed4664424b83f3a058fbf50258a40dd7685876 (patch)
tree181897a0ad7c55a52746fe13cf7519edbac13787
parent4729b781a8145e36939cc1a9e1f055214d30ceff (diff)
python311Packages.trio: 0.22.2 -> 0.23.1
https://github.com/python-trio/trio/releases/tag/v0.23.0 https://github.com/python-trio/trio/releases/tag/v0.23.1
-rw-r--r--pkgs/development/python-modules/trio/default.nix48
1 files changed, 33 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix
index c01db3259a7d..648f91f07b9b 100644
--- a/pkgs/development/python-modules/trio/default.nix
+++ b/pkgs/development/python-modules/trio/default.nix
@@ -1,20 +1,29 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, stdenv
+
+# build-system
+, setuptools
+
+# dependencies
, attrs
-, sortedcontainers
-, async-generator
, exceptiongroup
, idna
, outcome
+, sniffio
+, sortedcontainers
+
+# tests
+, astor
+, coreutils
+, jedi
+, pyopenssl
, pytestCheckHook
, pytest-trio
-, pyopenssl
, trustme
-, sniffio
-, stdenv
-, jedi
-, astor
, yapf
-, coreutils
}:
let
@@ -28,22 +37,26 @@ let
in
buildPythonPackage rec {
pname = "trio";
- version = "0.22.2";
- format = "setuptools";
- disabled = pythonOlder "3.7";
+ version = "0.23.1";
+ pyproject = true;
+
+ disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
- hash = "sha256-OIfPGMi8yJRDNCAwVGg4jax2ky6WaK+hxJqjgGtqzLM=";
+ hash = "sha256-FviffcyPe53N7B/Nhj4MA5r20PmiL439Vvdddexz/Ug=";
};
+ nativeBuildInputs = [
+ setuptools
+ ];
+
propagatedBuildInputs = [
attrs
- sortedcontainers
- async-generator
idna
outcome
sniffio
+ sortedcontainers
] ++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
];
@@ -81,6 +94,11 @@ buildPythonPackage rec {
"test_static_tool_sees_class_members"
];
+ disabledTestPaths = [
+ # linters
+ "trio/_tests/tools/test_gen_exports.py"
+ ];
+
pytestFlagsArray = [
"-W" "ignore::DeprecationWarning"
];