e3e89c8fe9
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.
53 lines
993 B
Nix
53 lines
993 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, click
|
|
, click-default-group
|
|
, sqlite-fts4
|
|
, tabulate
|
|
, pytestCheckHook
|
|
, pytestrunner
|
|
, black
|
|
, hypothesis
|
|
, sqlite
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlite-utils";
|
|
version = "3.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a158265fde85a6757b7f09b568b1f7d6eaf75eaae208be27336f09dc048e5bcf";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
click-default-group
|
|
sqlite-fts4
|
|
tabulate
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytestrunner
|
|
black
|
|
hypothesis
|
|
];
|
|
|
|
# disabled until upstream updates tests
|
|
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
|
|
"test_optimize"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python CLI utility and library for manipulating SQLite databases";
|
|
homepage = "https://github.com/simonw/sqlite-utils";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ meatcar ];
|
|
};
|
|
|
|
}
|