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
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
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 = with lib; {
|
|
description = "ASN.1 compiler with a backend for Quick DER";
|
|
homepage = "https://gitlab.com/arpa2/quick-der";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ leenaars ];
|
|
};
|
|
}
|