2021-10-11 00:54:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, asn1crypto
|
|
|
|
, certvalidator
|
|
|
|
, oscrypto
|
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, pytestCheckHook
|
2021-02-23 01:29:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "signify";
|
2021-10-11 00:54:01 +00:00
|
|
|
version = "0.4.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "setuptools";
|
2021-02-23 01:29:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ralphje";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-11 00:54:01 +00:00
|
|
|
sha256 = "sha256-YJc9RIqkEL7dd1ahE4IbxyyZgsZWBDqbXZAvI/nK24M=";
|
2021-02-23 01:29:59 +00:00
|
|
|
};
|
2021-10-11 00:54:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
|
|
|
certvalidator
|
|
|
|
oscrypto
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
2021-02-23 01:29:59 +00:00
|
|
|
];
|
|
|
|
|
2021-10-11 00:54:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"signify"
|
|
|
|
];
|
2021-02-23 01:29:59 +00:00
|
|
|
|
2021-10-11 00:54:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# chain doesn't validate because end-entitys certificate expired
|
|
|
|
# https://github.com/ralphje/signify/issues/27
|
|
|
|
"test_revoked_certificate"
|
|
|
|
];
|
2021-02-23 01:29:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ralphje/signify";
|
|
|
|
description = "library that verifies PE Authenticode-signed binaries";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ baloo ];
|
|
|
|
};
|
|
|
|
}
|