2020-11-06 00:33:48 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, click
|
|
|
|
, click-default-group
|
|
|
|
, tabulate
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestrunner
|
|
|
|
, black
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlite-utils";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.0";
|
2020-11-06 00:33:48 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "a158265fde85a6757b7f09b568b1f7d6eaf75eaae208be27336f09dc048e5bcf";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytestrunner
|
|
|
|
black
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python CLI utility and library for manipulating SQLite databases";
|
|
|
|
homepage = "https://github.com/simonw/sqlite-utils";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.meatcar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|