about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysqlitecipher/default.nix
blob: 34f474c50a329d11877759a4bf793d0819bf256c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 = "https://github.com/harshnative/pysqlitecipher";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}