nixpkgs/pkgs/development/tools/asn2quickder/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
993 B
Nix
Raw Normal View History

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