5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
olefile,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
cryptography,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msoffcrypto-tool";
|
|
version = "5.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nolze";
|
|
repo = "msoffcrypto-tool";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1LTFwXTIvFdrYyI1pDUPzQHw3/043+FGHDnKYWaomY0=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
olefile
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# Test fails with AssertionError
|
|
"test_cli"
|
|
];
|
|
|
|
pythonImportsCheck = [ "msoffcrypto" ];
|
|
|
|
meta = with lib; {
|
|
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${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "msoffcrypto-tool";
|
|
};
|
|
}
|