1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 openssl,
7}:
8
9buildPythonPackage rec {
10 pname = "securestring";
11 version = "0.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "dnet";
16 repo = "pysecstr";
17 tag = "v${version}";
18 hash = "sha256-FV5NUPberA5nqHad8IwkQLMldT1DPqTGpqOwgQ2zSdI=";
19 };
20
21 build-system = [ setuptools ];
22
23 buildInputs = [ openssl ];
24
25 pythonImportsCheck = [ "SecureString" ];
26
27 # no upstream tests exist
28 doCheck = false;
29
30 meta = {
31 description = "Clears the contents of strings containing cryptographic material";
32 homepage = "https://github.com/dnet/pysecstr";
33 license = lib.licenses.mit;
34 maintainers = [ lib.maintainers.ethancedwards8 ];
35 };
36}