2020-11-06 00:33:48 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-25 13:55:36 +00:00
|
|
|
, pythonOlder
|
2020-11-06 00:33:48 +00:00
|
|
|
, click
|
|
|
|
, click-default-group
|
2021-09-18 10:52:07 +00:00
|
|
|
, dateutils
|
2020-12-25 13:55:36 +00:00
|
|
|
, sqlite-fts4
|
2020-11-06 00:33:48 +00:00
|
|
|
, tabulate
|
|
|
|
, pytestCheckHook
|
2020-12-25 13:55:36 +00:00
|
|
|
, hypothesis
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlite-utils";
|
2021-10-07 14:46:35 +00:00
|
|
|
version = "3.17.1";
|
2020-12-25 13:55:36 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-07 14:46:35 +00:00
|
|
|
sha256 = "0cfde0c46a2d4c09d6df8609fe53642bc3ab443bcef3106d8f1eabeb3fccbe3d";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"pytest-runner"' ""
|
|
|
|
'';
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
click-default-group
|
2021-09-18 10:52:07 +00:00
|
|
|
dateutils
|
2020-12-25 13:55:36 +00:00
|
|
|
sqlite-fts4
|
2020-11-06 00:33:48 +00:00
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2020-12-25 13:55:36 +00:00
|
|
|
hypothesis
|
|
|
|
];
|
|
|
|
|
2020-11-06 00:33:48 +00: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-12-25 13:55:36 +00:00
|
|
|
maintainers = with maintainers; [ meatcar ];
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
}
|