2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, makeWrapper, cmake
|
2018-02-12 16:30:17 +00:00
|
|
|
, pytestrunner, pytest, six, pyparsing, asn1ate }:
|
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";
|
2020-01-26 01:59:59 +00:00
|
|
|
version = "1.3.0";
|
2016-08-07 15:26:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-01-26 01:59:59 +00:00
|
|
|
sha256 = "15lxv8vcjnsjxg7ywcac5p6mj5vf5pxq1219yap653ci4f1liqfr";
|
2016-08-07 15:26:56 +00:00
|
|
|
rev = "version-${version}";
|
|
|
|
owner = "vanrein";
|
2018-02-12 16:30:17 +00:00
|
|
|
repo = "quick-der";
|
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/*
|
|
|
|
'';
|
2016-08-07 15:26:56 +00:00
|
|
|
|
2019-09-08 20:48:29 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper cmake ];
|
2018-02-12 16:30:17 +00:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
2016-08-07 15:26:56 +00:00
|
|
|
|
2018-02-12 16:30:17 +00:00
|
|
|
propagatedBuildInputs = [ pyparsing asn1ate six ];
|
2016-08-07 15:26:56 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2016-08-07 15:26:56 +00:00
|
|
|
description = "An ASN.1 compiler with a backend for Quick DER";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/vanrein/asn2quickder";
|
2016-08-07 15:26:56 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|