blob: 7e3d9735e43894d9c182d60cc72fc3917ace15ae (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
olefile,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
cryptography,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "msoffcrypto-tool";
version = "6.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "nolze";
repo = "msoffcrypto-tool";
tag = "v${finalAttrs.version}";
hash = "sha256-qhnQXLkEeMfuPl2FJGX19M2B+StlzGU/wHgmRn9jcxc=";
};
build-system = [ poetry-core ];
dependencies = [
cryptography
olefile
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# Test fails with AssertionError
"test_cli"
];
pythonImportsCheck = [ "msoffcrypto" ];
meta = {
description = "Python tool and library for decrypting MS Office files with passwords or other keys";
homepage = "https://github.com/nolze/msoffcrypto-tool";
changelog = "https://github.com/nolze/msoffcrypto-tool/blob/v${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "msoffcrypto-tool";
};
})
|