2020-10-02 00:20:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-19 08:00:12 +00:00
|
|
|
, pythonOlder
|
2020-10-02 00:20:04 +01:00
|
|
|
, click
|
|
|
|
, click-default-group
|
2020-11-19 08:00:12 +00:00
|
|
|
, sqlite-fts4
|
2020-10-02 00:20:04 +01:00
|
|
|
, tabulate
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestrunner
|
|
|
|
, black
|
2020-11-19 08:00:12 +00:00
|
|
|
, hypothesis
|
|
|
|
, sqlite
|
2020-10-02 00:20:04 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlite-utils";
|
2020-12-22 06:11:36 +00:00
|
|
|
version = "3.1";
|
2020-11-19 08:00:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-10-02 00:20:04 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-22 06:11:36 +00:00
|
|
|
sha256 = "53950eb89f77066d6caf553c52ec01701a8bebbaffa9e0a627df3f229ca8720f";
|
2020-10-02 00:20:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
click-default-group
|
2020-11-19 08:00:12 +00:00
|
|
|
sqlite-fts4
|
2020-10-02 00:20:04 +01:00
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytestrunner
|
|
|
|
black
|
2020-11-19 08:00:12 +00:00
|
|
|
hypothesis
|
|
|
|
];
|
|
|
|
|
|
|
|
# disabled until upstream updates tests
|
|
|
|
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
|
|
|
|
"test_optimize"
|
2020-10-02 00:20:04 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python CLI utility and library for manipulating SQLite databases";
|
|
|
|
homepage = "https://github.com/simonw/sqlite-utils";
|
|
|
|
license = licenses.asl20;
|
2020-11-19 08:00:12 +00:00
|
|
|
maintainers = with maintainers; [ meatcar ];
|
2020-10-02 00:20:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|