Unverified Commit 30447f49 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #290036 from dotlambda/signify-unbreak

python311Packages.signify: relax pyasn1 constraint
parents 6c76b7c9 d2eceeb2
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
@@ -3,28 +3,42 @@
, buildPythonPackage
, certvalidator
, fetchFromGitHub
, fetchpatch2
, mscerts
, oscrypto
, pyasn1
, pyasn1-modules
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "signify";
  version = "0.5.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "ralphje";
    repo = pname;
    repo = "signify";
    rev = "refs/tags/v${version}";
    hash = "sha256-+UhZF+QYuv8pq/sTu7GDPUrlPNNixFgVZL+L0ulj/ko=";
  };

  patches = [
    # https://github.com/ralphje/signify/pull/42
    (fetchpatch2 {
      url = "https://github.com/ralphje/signify/commit/38cad57bf86f7498259b47bfef1354aec27c0955.patch";
      hash = "sha256-dLmHSlj2Cj6jbbrZStgK2Rh/H5vOaIbi5lut5RAbd+s=";
    })
  ];

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    asn1crypto
    certvalidator
@@ -42,19 +56,11 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  disabledTests = [
    # chain doesn't validate because end-entitys certificate expired
    # https://github.com/ralphje/signify/issues/27
    "test_revoked_certificate"
  ];

  meta = with lib; {
    changelog = "https://github.com/ralphje/signify/blob/${src.rev}/docs/changelog.rst";
    description = "library that verifies PE Authenticode-signed binaries";
    homepage = "https://github.com/ralphje/signify";
    license = licenses.mit;
    maintainers = with maintainers; [ baloo ];
    # No support for pyasn1 > 0.5
    # https://github.com/ralphje/signify/issues/37
    broken = true;
  };
}