depot/third_party/nixpkgs/pkgs/development/python-modules/sqlite-utils/default.nix
Default email 2969ca571a Project import generated by Copybara.
GitOrigin-RevId: 257cbbcd3ab7bd96f5d24d50adc807de7c82e06d
2021-01-09 11:05:03 +01:00

52 lines
993 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.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "83d60e0f0de5e4a367e2ad414dc008c0602e2af35325b09e41c7b2c69808dcc1";
};
propagatedBuildInputs = [
click
click-default-group
sqlite-fts4
tabulate
];
checkInputs = [
pytestCheckHook
pytestrunner
black
hypothesis
];
# disabled until upstream updates tests
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
"test_optimize"
];
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 ];
};
}