diff --git a/pkgs/development/python-modules/pysqlcipher3/default.nix b/pkgs/development/python-modules/pysqlcipher3/default.nix new file mode 100644 index 000000000000..ab3f949cf1ed --- /dev/null +++ b/pkgs/development/python-modules/pysqlcipher3/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, pythonAtLeast, sqlcipher }: + +buildPythonPackage rec { + pname = "pysqlcipher3"; + version = "1.0.3"; + + disabled = pythonAtLeast "3.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "0c54m18h52llwkfc9zaag3qkmfzzp5a1w9jzsm5hd2nfdsxmnkk9"; + }; + + buildInputs = [ sqlcipher ]; + + pythonImportsCheck = [ "pysqlcipher3" ]; + + meta = with lib; { + description = "Python 3 bindings for SQLCipher"; + homepage = "https://github.com/rigglemania/pysqlcipher3/"; + license = licenses.zlib; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index be5484ff56fe..a4efdd030a75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5690,6 +5690,10 @@ in { pysptk = callPackage ../development/python-modules/pysptk { }; + pysqlcipher3 = callPackage ../development/python-modules/pysqlcipher3 { + inherit (pkgs) sqlcipher; + }; + pysqlite = callPackage ../development/python-modules/pysqlite { }; pysqueezebox = callPackage ../development/python-modules/pysqueezebox { };