python3Packages.sqlite-utils: 3.19 -> 3.22

Clean up package:
- remove test patch, as it's included in 3.20 (simonw/sqlite-utils@ee13f98c2c)
- pytest-runner is removed from setup.py in (simonw/sqlite-utils@f3fd861311)
- replace `dateutils` with `python-dateutil` (simonw/sqlite-utils@bc4c42d688)
This commit is contained in:
Denys Pavlov 2022-01-10 16:16:09 +00:00 committed by Jonathan Ringer
parent 31c02c308b
commit a25c61c203

View file

@ -5,7 +5,7 @@
, pythonOlder
, click
, click-default-group
, dateutils
, python-dateutil
, sqlite-fts4
, tabulate
, pytestCheckHook
@ -14,32 +14,18 @@
buildPythonPackage rec {
pname = "sqlite-utils";
version = "3.19";
version = "3.22";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "509099fce5f25faada6e76b6fb90e8ef5ba0f1715177933a816718be0c8e7244";
sha256 = "24803ea4d63e2123d2040db2da43fea95fabada80e1af1fe1da69643ae376689";
};
patches = [
# https://github.com/simonw/sqlite-utils/pull/347
(fetchpatch {
name = "sqlite-utils-better-test_rebuild_fts.patch";
url = "https://github.com/simonw/sqlite-utils/pull/347/commits/1a7ef2fe2064ace01d5535fb771f941296fb642a.diff";
sha256 = "sha256-WKCQGMqr8WYjG7cmAH5pYBhgikowbt3r6hObwtMDDUY=";
})
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
propagatedBuildInputs = [
click
click-default-group
dateutils
python-dateutil
sqlite-fts4
tabulate
];