pythonPackages.sqlite-utils: depend on sqlite-fts4

Fixed b8c648802c where `sqlite-utils`
was updated without adding the new `sqlite-fts4` dependency.

Disabled two tests that are failing for sqlite v3.34.0, until they are
fixed upstream.
This commit is contained in:
Denys Pavlov 2020-11-19 03:00:12 -05:00
parent d6d2281f35
commit e3e89c8fe9

View File

@ -1,19 +1,22 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k , pythonOlder
, click , click
, click-default-group , click-default-group
, sqlite-fts4
, tabulate , tabulate
, pytestCheckHook , pytestCheckHook
, pytestrunner , pytestrunner
, black , black
, hypothesis
, sqlite
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sqlite-utils"; pname = "sqlite-utils";
version = "3.0"; version = "3.0";
disabled = !isPy3k; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -23,6 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
click-default-group click-default-group
sqlite-fts4
tabulate tabulate
]; ];
@ -30,13 +34,19 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
pytestrunner pytestrunner
black black
hypothesis
];
# disabled until upstream updates tests
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
"test_optimize"
]; ];
meta = with lib; { meta = with lib; {
description = "Python CLI utility and library for manipulating SQLite databases"; description = "Python CLI utility and library for manipulating SQLite databases";
homepage = "https://github.com/simonw/sqlite-utils"; homepage = "https://github.com/simonw/sqlite-utils";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.meatcar ]; maintainers = with maintainers; [ meatcar ];
}; };
} }