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