depot/third_party/nixpkgs/pkgs/development/python-modules/signify/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

36 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook
, certvalidator, pyasn1, pyasn1-modules
}:
buildPythonPackage rec {
pname = "signify";
version = "0.3.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "ralphje";
repo = pname;
rev = "v${version}";
sha256 = "sha256-JxQECpwHhPm8TCVW/bCnEpu5I/WETyZVBx29SQE4NmE=";
};
patches = [
# Upstream patch is available here:
# https://github.com/ralphje/signify/commit/8c345be954e898a317825bb450bed5ba0304b2b5.patch
# But update a couple other things and dont apply cleanly. This is an extract of the part
# we care about and breaks the tests after 2021-03-01
./certificate-expiration-date.patch
];
propagatedBuildInputs = [ certvalidator pyasn1 pyasn1-modules ];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "-v" ];
pythonImportsCheck = [ "signify" ];
meta = with lib; {
homepage = "https://github.com/ralphje/signify";
description = "library that verifies PE Authenticode-signed binaries";
license = licenses.mit;
maintainers = with maintainers; [ baloo ];
};
}