summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/secretstorage/default.nix
blob: 327d0209df7924f38efb289bcdbec0cf0b984b5b (plain)
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
{
  lib,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  jeepney,
}:

buildPythonPackage rec {
  pname = "secretstorage";
  version = "3.3.3";
  format = "setuptools";

  src = fetchPypi {
    pname = "SecretStorage";
    inherit version;
    hash = "sha256-JANTPvNp7KbSuoFxhXbF4PVk1cyhtY9zqLI+fU7uvXc=";
  };

  propagatedBuildInputs = [
    cryptography
    jeepney
  ];

  # Needs a D-Bus session
  doCheck = false;

  pythonImportsCheck = [ "secretstorage" ];

  meta = {
    description = "Python bindings to FreeDesktop.org Secret Service API";
    homepage = "https://github.com/mitya57/secretstorage";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ teto ];
  };
}