summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2022-06-30 17:23:13 +0000
committerRobert Schütz <nix@dotlambda.de>2022-06-30 17:27:21 +0000
commit3ac24f48357076ef5c823d550bf5c9118c03b969 (patch)
treedd06f5819672dac9b8d0632a6281f6854a2c818f
parent0ccd98cae581613816aacdc0bb8ea3845cf9ca61 (diff)
downloadnixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar.gz
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar.bz2
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar.lz
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar.xz
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.tar.zst
nixpkgs-3ac24f48357076ef5c823d550bf5c9118c03b969.zip
python310Packages.pysqlitecipher: init at 0.22
-rw-r--r--pkgs/development/python-modules/pysqlitecipher/default.nix38
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysqlitecipher/default.nix b/pkgs/development/python-modules/pysqlitecipher/default.nix
new file mode 100644
index 00000000000..6eaa1d13eb7
--- /dev/null
+++ b/pkgs/development/python-modules/pysqlitecipher/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, cryptography
+, onetimepad
+}:
+
+buildPythonPackage rec {
+  pname = "pysqlitecipher";
+  version = "0.22";
+
+  disabled = pythonOlder "3.6";
+
+  format = "setuptools";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "daff63ca2719fbd698aa10f64493c4b31fb67877a8e8dbb8090e9c03a1b1a9e4";
+  };
+
+  propagatedBuildInputs = [
+    cryptography
+    onetimepad
+  ];
+
+  # upstream has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [ "pysqlitecipher" ];
+
+  meta = {
+    description = "Lightweight and easy to use sqlite wrapper with built-in encryption system";
+    homepage = "Ghttps://github.com/harshnative/pysqlitecipher";
+    license = lib.licenses.gpl3Only;
+    maintainers = with lib.maintainers; [ dotlambda ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 4235bba3307..72fa774af61 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6657,6 +6657,8 @@ in {
 
   pysolcast = callPackage ../development/python-modules/pysolcast { };
 
+  pysqlitecipher = callPackage ../development/python-modules/pysqlitecipher { };
+
   pysyncthru = callPackage ../development/python-modules/pysyncthru { };
 
   python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };