nixpkgs/pkgs/development/python-modules/sqlite-utils/default.nix
2020-12-22 08:59:56 -08:00

53 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.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "53950eb89f77066d6caf553c52ec01701a8bebbaffa9e0a627df3f229ca8720f";
};
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 ];
};
}