python3Packages.anyio: 3.3.4 -> 3.5.0

This commit is contained in:
Martin Weinelt 2022-03-03 15:27:25 +01:00
parent 59d3288912
commit b24ffb8c96

View file

@ -2,6 +2,7 @@
, lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, setuptools-scm
, idna
@ -19,7 +20,7 @@
buildPythonPackage rec {
pname = "anyio";
version = "3.3.4";
version = "3.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -27,9 +28,17 @@ buildPythonPackage rec {
owner = "agronholm";
repo = pname;
rev = version;
sha256 = "sha256-aMnXZ+4dlybId2QhjE/3STY+Sj/vzI6K7wmqqx+P8yE=";
sha256 = "sha256-AZ9M/NBCBlMIUpRJgKbJRL/oReZDUh2Jhwtoxoo0tMs=";
};
patches = [
(fetchpatch {
# Pytest 7.0 compatibility
url = "https://github.com/agronholm/anyio/commit/fed7cc4f95e196f68251bcb9253da3b143ea8e7e.patch";
sha256 = "sha256-VmZmiQEmWJ4aPz0Wx+GTMZo7jXRDScnRYf2Hu2hiRVw=";
})
];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION=${version}
'';