visidata: fix tests on Python 3.12

The package fails to build since the default Python revision is
updated in nixpkgs.

Fixes: #326083
This commit is contained in:
László Vaskó 2024-07-15 14:35:28 +02:00
parent 8803c1412d
commit b4f112c52d

View file

@ -2,7 +2,8 @@
, lib
, buildPythonApplication
, fetchFromGitHub
# python requirements
, fetchpatch
# python requirements
, beautifulsoup4
, boto3
, faker
@ -54,6 +55,20 @@ buildPythonApplication rec {
hash = "sha256-gplrkrFTIP6TLvk1YazD5roDzsPvDtOXLlTOmTio52s=";
};
patches = [
# Drop when next release is out
(fetchpatch {
name = "drop-support-for-python-37.patch";
url = "https://github.com/saulpw/visidata/commit/738bb8b43814c14b1b8a1f1f60397c1520c5ef4a.patch";
hash = "sha256-5jDAzKMuW3s7BCGpWyLcS4Lw8GUbjNxVhF5mUKbR1YY=";
})
(fetchpatch {
name = "update-tests-for-python-312.patch";
url = "https://github.com/saulpw/visidata/commit/627f6f126cdd49bcdda0bbc16fab42eb5bd42103.patch";
hash = "sha256-3FHgjLrzMHObEheJoRY8VlnDUtDZ68FqCqAyhP7333E=";
})
];
propagatedBuildInputs = [
# from visidata/requirements.txt
# packages not (yet) present in nixpkgs are commented