python310Packages.quamash: fix build for 3.10

This commit is contained in:
Jonathan Ringer 2022-01-04 22:21:06 -08:00
parent 4b70e0e343
commit cf30a8b904
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest, isPy3k, pyqt5, pyqt ? pyqt5 }:
{ lib, buildPythonPackage, fetchFromGitHub
, pytest, isPy3k, pyqt5, pyqt ? pyqt5
, fetchpatch
}:
buildPythonPackage rec {
pname = "quamash";
@ -14,6 +17,14 @@ buildPythonPackage rec {
sha256 = "117rp9r4lz0kfz4dmmpa35hp6nhbh6b4xq0jmgvqm68g9hwdxmqa";
};
patches = [
# add 3.10 compatibility, merged remove on next update
(fetchpatch {
url = "https://github.com/harvimt/quamash/pull/126/commits/1e9047bec739dbc9d6ab337fc1a111a8b1090244.patch";
sha256 = "sha256-6gomY82AOKkrt32SEBKnRugzhnC5FAyKDs6K5xaxnRM=";
})
];
propagatedBuildInputs = [ pyqt ];
checkInputs = [ pytest ];