python3Packages.pyschemes: Enable python 3.10

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2022-08-29 22:27:28 +02:00
parent d251980504
commit ee27ae199e
No known key found for this signature in database
GPG key ID: 074048E893713170

View file

@ -1,8 +1,8 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, pytestCheckHook
, fetchpatch
}:
buildPythonPackage rec {
@ -10,8 +10,6 @@ buildPythonPackage rec {
version = "unstable-2017-11-08";
format = "setuptools";
disabled = pythonAtLeast "3.10";
src = fetchFromGitHub {
owner = "spy16";
repo = pname;
@ -19,6 +17,14 @@ buildPythonPackage rec {
hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU=";
};
patches = [
# Fix python 3.10 compatibility. Tracked upstream in
# https://github.com/spy16/pyschemes/pull/6
(fetchpatch {
url = "https://github.com/spy16/pyschemes/commit/23011128c6c22838d4fca9e00fd322a20bb566c4.patch";
sha256 = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc=";
})
];
checkInputs = [
pytestCheckHook
];