2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, asn1crypto
|
2023-05-24 13:37:59 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, certvalidator
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mscerts
|
2021-12-06 16:07:01 +00:00
|
|
|
, oscrypto
|
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "signify";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.5.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ralphje";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+UhZF+QYuv8pq/sTu7GDPUrlPNNixFgVZL+L0ulj/ko=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
|
|
|
certvalidator
|
2023-05-24 13:37:59 +00:00
|
|
|
mscerts
|
2021-12-06 16:07:01 +00:00
|
|
|
oscrypto
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"signify"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# chain doesn't validate because end-entitys certificate expired
|
|
|
|
# https://github.com/ralphje/signify/issues/27
|
|
|
|
"test_revoked_certificate"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "library that verifies PE Authenticode-signed binaries";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/ralphje/signify";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ baloo ];
|
2023-05-24 13:37:59 +00:00
|
|
|
# No support for pyasn1 > 0.5
|
|
|
|
# https://github.com/ralphje/signify/issues/37
|
|
|
|
broken = true;
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
}
|