Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
attrs,
|
|
buildPythonPackage,
|
|
cryptodatahub,
|
|
fetchPypi,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptoparser";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-bEvhMVcm9sXlfhxUD2K4N10nusgxpGYFJQLtJE1/qok=";
|
|
};
|
|
|
|
patches = [
|
|
# https://gitlab.com/coroner/cryptoparser/-/merge_requests/2
|
|
./fix-dirs-exclude.patch
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
attrs
|
|
cryptodatahub
|
|
python-dateutil
|
|
urllib3
|
|
];
|
|
|
|
postInstall = ''
|
|
find $out -name "__pycache__" -type d | xargs rm -rv
|
|
|
|
# Prevent creating more binary byte code later (e.g. during
|
|
# pythonImportsCheck)
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|