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
|
2024-02-29 20:09:43 +00:00
|
|
|
, setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
, typing-extensions
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "signify";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.6.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ralphje";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "signify";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-29SyzqtZ1cI+1xrSPLFr63vwB5st/9i5b3FYtJn6eok=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
typing-extensions
|
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
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/ralphje/signify/blob/${src.rev}/docs/changelog.rst";
|
2021-03-09 03:18:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|