blob: 528d4becda6b60d05a6bccbb5579cb77626baadd (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
argon2-cffi,
buildPythonPackage,
fetchFromGitHub,
setuptools,
keyring,
pycryptodome,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "keyrings-cryptfile";
version = "1.4.1";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "frispete";
repo = "keyrings.cryptfile";
rev = "refs/tags/v${version}";
hash = "sha256-cDXx0s3o8hNqgzX4oNkjGhNcaUX5vi1uN2d9sdbiZwk=";
};
build-system = [ setuptools ];
dependencies = [
argon2-cffi
keyring
pycryptodome
];
pythonImportsCheck = [ "keyrings.cryptfile" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
disabledTests = [
# correct raise `ValueError`s which pytest fails to catch for some reason:
"test_empty_username"
# TestEncryptedFileKeyring::test_file raises 'ValueError: Incorrect Password' for some reason, maybe mock related:
"TestEncryptedFileKeyring"
];
meta = with lib; {
description = "Encrypted file keyring backend";
mainProgram = "cryptfile-convert";
homepage = "https://github.com/frispete/keyrings.cryptfile";
changelog = "https://github.com/frispete/keyrings.cryptfile/blob/v${version}/CHANGES.md";
license = licenses.mit;
maintainers = [ maintainers.bbjubjub ];
};
}
|