visidata: 3.0.2 -> 3.1.1

Changelog: https://github.com/saulpw/visidata/releases/tag/v3.1.1

The now obsolete patches have been removed.
New dependencies for the msgpack loader have been registered here.
The test for the fecfile loader is disabled because we do not have
the required dependency in nixpkgs.
This commit is contained in:
euxane 2024-10-19 16:30:38 +02:00
parent f8b17f235e
commit 65dc12ea22

View File

@ -2,7 +2,6 @@
, lib , lib
, buildPythonApplication , buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
# python requirements # python requirements
, beautifulsoup4 , beautifulsoup4
, boto3 , boto3
@ -23,6 +22,8 @@
, pyarrow , pyarrow
, pyshp , pyshp
, pypng , pypng
, msgpack
, brotli
, python-dateutil , python-dateutil
, pyyaml , pyyaml
, requests , requests
@ -46,29 +47,15 @@
}: }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "visidata"; pname = "visidata";
version = "3.0.2"; version = "3.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "saulpw"; owner = "saulpw";
repo = "visidata"; repo = "visidata";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-gplrkrFTIP6TLvk1YazD5roDzsPvDtOXLlTOmTio52s="; hash = "sha256-ICEYC9QjYrB+oTzakfjgyg4DigzDOtYnqHRTaqF7Gw0=";
}; };
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 = [ propagatedBuildInputs = [
# from visidata/requirements.txt # from visidata/requirements.txt
# packages not (yet) present in nixpkgs are commented # packages not (yet) present in nixpkgs are commented
@ -86,6 +73,9 @@ buildPythonApplication rec {
#mapbox-vector-tile #mapbox-vector-tile
pypng pypng
#pyconll #pyconll
msgpack
brotli
#fecfile
fonttools fonttools
#sas7bdat #sas7bdat
#xport #xport
@ -139,6 +129,7 @@ buildPythonApplication rec {
# tests to disable because we don't have a package to load such files # tests to disable because we don't have a package to load such files
rm -f tests/load-conllu.vdj # no 'pyconll' rm -f tests/load-conllu.vdj # no 'pyconll'
rm -f tests/load-sav.vd # no 'savReaderWriter' rm -f tests/load-sav.vd # no 'savReaderWriter'
rm -f tests/load-fec.vdj # no 'fecfile'
# tests use git to compare outputs to references # tests use git to compare outputs to references
git init -b "test-reference" git init -b "test-reference"