Files
nixpkgs/pkgs/development/tools/asn2quickder/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

55 lines
1000 B
Nix

{
lib,
buildPythonApplication,
fetchFromGitLab,
makeWrapper,
cmake,
six,
pyparsing,
asn1ate,
colored,
}:
buildPythonApplication rec {
pname = "asn2quickder";
version = "1.7.1";
format = "setuptools";
src = fetchFromGitLab {
owner = "arpa2";
repo = "quick-der";
rev = "v${version}";
hash = "sha256-f+ph5PL+uWRkswpOLDwZFWjh938wxoJ6xocJZ2WZLEk=";
};
postPatch = ''
patchShebangs ./python/scripts/*
# Unpin pyparsing 3.0.0. Issue resolved in latest version.
substituteInPlace setup.py --replace 'pyparsing==3.0.0' 'pyparsing'
'';
dontUseCmakeConfigure = true;
nativeBuildInputs = [
makeWrapper
cmake
];
propagatedBuildInputs = [
pyparsing
asn1ate
six
colored
];
doCheck = false; # Flaky tests
meta = {
description = "ASN.1 compiler with a backend for Quick DER";
homepage = "https://gitlab.com/arpa2/quick-der";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};
}