Unverified Commit 4373885c authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #308464 from fabaff/msoffcrypto-tool-bump

python312Packages.msoffcrypto-tool: 5.3.1 -> 5.4.0
parents d448a75c d6a42937
Loading
Loading
Loading
Loading
+19 −24
Original line number Diff line number Diff line
{ lib
, olefile
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, cryptography
, pytestCheckHook
, pythonOlder
, setuptools
{
  lib,
  olefile,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  cryptography,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "msoffcrypto-tool";
  version = "5.3.1";
  format = "pyproject";
  version = "5.4.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "nolze";
    repo = pname;
    repo = "msoffcrypto-tool";
    rev = "refs/tags/v${version}";
    hash = "sha256-aQtEJyG0JGe4eSIRI4OUjJZNDBni6FFyJXXkbeiotSY=";
    hash = "sha256-1LTFwXTIvFdrYyI1pDUPzQHw3/043+FGHDnKYWaomY0=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    cryptography
    olefile
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];
  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # Test fails with AssertionError
    "test_cli"
  ];

  pythonImportsCheck = [
    "msoffcrypto"
  ];
  pythonImportsCheck = [ "msoffcrypto" ];

  meta = with lib; {
    description = "Python tool and library for decrypting MS Office files with passwords or other keys";
    mainProgram = "msoffcrypto-tool";
    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";
  };
}