diff options
author | Denys Pavlov <me@denys.me> | 2020-11-19 03:00:12 -0500 |
---|---|---|
committer | Denys Pavlov <me@denys.me> | 2020-12-14 13:56:43 -0500 |
commit | e3e89c8fe93ee0bf8878fbd55dd1245b68cd6e85 (patch) | |
tree | 9e84c7233b54109f71a1244c84ac871f8490b124 /pkgs/development/python-modules/sqlite-utils | |
parent | d6d2281f358d2f2e87e6312c12a81a0da342563c (diff) |
pythonPackages.sqlite-utils: depend on sqlite-fts4
Fixed b8c648802ce86535813787456a1ff321e767ca92 where `sqlite-utils` was updated without adding the new `sqlite-fts4` dependency. Disabled two tests that are failing for sqlite v3.34.0, until they are fixed upstream.
Diffstat (limited to 'pkgs/development/python-modules/sqlite-utils')
-rw-r--r-- | pkgs/development/python-modules/sqlite-utils/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/sqlite-utils/default.nix b/pkgs/development/python-modules/sqlite-utils/default.nix index 6e17fc4f38e2c..ef595ae93faca 100644 --- a/pkgs/development/python-modules/sqlite-utils/default.nix +++ b/pkgs/development/python-modules/sqlite-utils/default.nix @@ -1,19 +1,22 @@ { lib , buildPythonPackage , fetchPypi -, isPy3k +, pythonOlder , click , click-default-group +, sqlite-fts4 , tabulate , pytestCheckHook , pytestrunner , black +, hypothesis +, sqlite }: buildPythonPackage rec { pname = "sqlite-utils"; version = "3.0"; - disabled = !isPy3k; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; @@ -23,6 +26,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ click click-default-group + sqlite-fts4 tabulate ]; @@ -30,13 +34,19 @@ buildPythonPackage rec { 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 = [ maintainers.meatcar ]; + maintainers = with maintainers; [ meatcar ]; }; } |