2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitLab
|
|
|
|
, makeWrapper
|
|
|
|
, cmake
|
|
|
|
, six
|
|
|
|
, pyparsing
|
|
|
|
, asn1ate
|
|
|
|
, colored
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "asn2quickder";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "arpa2";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "quick-der";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-f+ph5PL+uWRkswpOLDwZFWjh938wxoJ6xocJZ2WZLEk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./python/scripts/*
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
# Unpin pyparsing 3.0.0. Issue resolved in latest version.
|
|
|
|
substituteInPlace setup.py --replace 'pyparsing==3.0.0' 'pyparsing'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [ pyparsing asn1ate six colored ];
|
|
|
|
|
|
|
|
doCheck = false; # Flaky tests
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An ASN.1 compiler with a backend for Quick DER";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://gitlab.com/arpa2/quick-der";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|