Files
nixpkgs/pkgs/development/python-modules/msoffcrypto-tool/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
lib,
olefile,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
cryptography,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "msoffcrypto-tool";
version = "5.4.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nolze";
repo = "msoffcrypto-tool";
tag = "v${version}";
hash = "sha256-nwCjgcZqD0hptHC0WqIodHC5m/JHYyUdfEngIoXzNqA=";
};
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${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "msoffcrypto-tool";
};
}