python3Packages.hyperion-py: fix python3.10 support

main
Martin Weinelt 2 years ago committed by Jonathan Ringer
parent ae784e7d3e
commit 61d056d212
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 11
      pkgs/development/python-modules/hyperion-py/default.nix

@ -2,6 +2,7 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
, pythonAtLeast
@ -13,7 +14,7 @@
buildPythonPackage rec {
pname = "hyperion-py";
version = "0.7.5";
disabled = pythonOlder "3.8" || pythonAtLeast "3.10";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
@ -23,6 +24,14 @@ buildPythonPackage rec {
sha256 = "sha256-arcnpCQsRuiWCrAz/t4TCjTe8DRDtRuzYp8k7nnjGDk=";
};
patches = [
(fetchpatch {
# python3.10 compat: Drop loop kwarg in asyncio.sleep call
url = "https://github.com/dermotduffy/hyperion-py/commit/f02af52fcce17888984c99bfc03935e372011394.patch";
hash = "sha256-4nfsQVxd77VV9INwNxTyFRDlAjwdTYqfSGuF487hFCs=";
})
];
nativeBuildInputs = [
poetry-core
];

Loading…
Cancel
Save