Files
nixpkgs/pkgs/development/python-modules/cryptoparser/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
description = "Security protocol parser and generator";
homepage = "https://gitlab.com/coroner/cryptoparser";
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ kranzes ];
};
}