summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/securestring/default.nix
blob: b0def76456dd5183c34d02b5610cc694ca4bdff6 (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,
  fetchFromGitHub,
  setuptools,
  openssl,
}:

buildPythonPackage rec {
  pname = "securestring";
  version = "0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dnet";
    repo = "pysecstr";
    tag = "v${version}";
    hash = "sha256-FV5NUPberA5nqHad8IwkQLMldT1DPqTGpqOwgQ2zSdI=";
  };

  build-system = [ setuptools ];

  buildInputs = [ openssl ];

  pythonImportsCheck = [ "SecureString" ];

  # no upstream tests exist
  doCheck = false;

  meta = {
    description = "Clears the contents of strings containing cryptographic material";
    homepage = "https://github.com/dnet/pysecstr";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ethancedwards8 ];
  };
}