depot/third_party/nixpkgs/pkgs/development/tools/asn2quickder/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

45 lines
993 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitLab
, makeWrapper
, cmake
, six
, pyparsing
, asn1ate
, colored
}:
buildPythonApplication rec {
pname = "asn2quickder";
version = "1.7.1";
src = fetchFromGitLab {
owner = "arpa2";
repo = "quick-der";
rev = "v${version}";
sha256 = "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 = "An 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 ];
};
}