forked from mirrors/nixpkgs
48 lines
848 B
Nix
48 lines
848 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.9.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a08ed62eb269e26ae9c35b9be9cd3d395b0522157e6543128a40cc5302d8aa81";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
click-default-group
|
|
sqlite-fts4
|
|
tabulate
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytestrunner
|
|
black
|
|
hypothesis
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|