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
|
2020-12-25 13:55:36 +00:00
|
|
|
, sqlite-fts4
|
2020-11-06 00:33:48 +00:00
|
|
|
, tabulate
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestrunner
|
|
|
|
, black
|
2020-12-25 13:55:36 +00:00
|
|
|
, hypothesis
|
|
|
|
, sqlite
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlite-utils";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "3.3";
|
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-02-05 17:12:51 +00:00
|
|
|
sha256 = "1linla3za1gb3w0n0k6h3q8in62qhipizff259p14gzmyr95rjjv";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
click-default-group
|
2020-12-25 13:55:36 +00:00
|
|
|
sqlite-fts4
|
2020-11-06 00:33:48 +00:00
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytestrunner
|
|
|
|
black
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|