Merge pull request #327354 from vlaci/visidata-python-312

visidata: fix tests on Python 3.12
This commit is contained in:
7c6f434c 2024-07-16 15:14:20 +00:00 committed by GitHub
commit 44e4c08cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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