depot/third_party/nixpkgs/pkgs/development/python-modules/cryptoparser/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

52 lines
1,021 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, attrs
, asn1crypto
, cryptodatahub
, python-dateutil
, urllib3
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cryptoparser";
version = "0.12.2";
pyproject = true;
src = fetchPypi {
pname = "CryptoParser";
inherit version;
hash = "sha256-SG7I/uOWZapjZ5zGW1HndGqaYc2k2aRWf3IWlartIJE=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace-warn "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
asn1crypto
attrs
cryptodatahub
python-dateutil
urllib3
];
pythonImportsCheck = [
"cryptoparser"
];
meta = with lib; {
description = "Security protocol parser and generator";
homepage = "https://gitlab.com/coroner/cryptoparser";
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ kranzes ];
};
}