Merge pull request #104253 from meatcar/sqlite-utils-3.0
pythonPackages.sqlite-utils: depend on sqlite-fts4
This commit is contained in:
commit
0d42077f34
31
pkgs/development/python-modules/sqlite-fts4/default.nix
Normal file
31
pkgs/development/python-modules/sqlite-fts4/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isPy3k
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "sqlite-fts4";
|
||||||
|
version = "1.0.1";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "simonw";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "15r1mijk306fpm61viry5wjhqyxlbqqdk4nfcd901qarx7vqypgy";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Custom Python functions for working with SQLite FTS4";
|
||||||
|
homepage = "https://github.com/simonw/sqlite-fts4";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ meatcar ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1,19 +1,22 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
, click
|
, click
|
||||||
, click-default-group
|
, click-default-group
|
||||||
|
, sqlite-fts4
|
||||||
, tabulate
|
, tabulate
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, black
|
, black
|
||||||
|
, hypothesis
|
||||||
|
, sqlite
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sqlite-utils";
|
pname = "sqlite-utils";
|
||||||
version = "3.0";
|
version = "3.0";
|
||||||
disabled = !isPy3k;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -23,6 +26,7 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
click-default-group
|
click-default-group
|
||||||
|
sqlite-fts4
|
||||||
tabulate
|
tabulate
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -30,13 +34,19 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytestrunner
|
pytestrunner
|
||||||
black
|
black
|
||||||
|
hypothesis
|
||||||
|
];
|
||||||
|
|
||||||
|
# disabled until upstream updates tests
|
||||||
|
disabledTests = lib.optionals (lib.versionAtLeast sqlite.version "3.34.0") [
|
||||||
|
"test_optimize"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python CLI utility and library for manipulating SQLite databases";
|
description = "Python CLI utility and library for manipulating SQLite databases";
|
||||||
homepage = "https://github.com/simonw/sqlite-utils";
|
homepage = "https://github.com/simonw/sqlite-utils";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.meatcar ];
|
maintainers = with maintainers; [ meatcar ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7034,6 +7034,7 @@ in {
|
|||||||
|
|
||||||
sqlitedict = callPackage ../development/python-modules/sqlitedict { };
|
sqlitedict = callPackage ../development/python-modules/sqlitedict { };
|
||||||
|
|
||||||
|
sqlite-fts4 = callPackage ../development/python-modules/sqlite-fts4 { };
|
||||||
sqlite-utils = callPackage ../development/python-modules/sqlite-utils { };
|
sqlite-utils = callPackage ../development/python-modules/sqlite-utils { };
|
||||||
|
|
||||||
sqlmap = callPackage ../development/python-modules/sqlmap { };
|
sqlmap = callPackage ../development/python-modules/sqlmap { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user