1{ stdenv, buildPythonApplication, fetchFromGitHub, makeWrapper, cmake
2, pytestrunner, pytest, six, pyparsing, asn1ate }:
3
4buildPythonApplication rec {
5 pname = "asn2quickder";
6 version = "1.2-6";
7
8 src = fetchFromGitHub {
9 sha256 = "00wifjydgmqw2i5vmr049visc3shjqccgzqynkmmhkjhs86ghzr6";
10 rev = "version-${version}";
11 owner = "vanrein";
12 repo = "quick-der";
13 };
14
15 patchPhase = ''
16 patchShebangs ./python/scripts/*
17 '';
18
19 buildInputs = [ makeWrapper cmake ];
20 checkInputs = [ pytestrunner pytest ];
21
22 propagatedBuildInputs = [ pyparsing asn1ate six ];
23
24 meta = with stdenv.lib; {
25 description = "An ASN.1 compiler with a backend for Quick DER";
26 homepage = https://github.com/vanrein/asn2quickder;
27 license = licenses.bsd3;
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ leenaars ];
30 };
31}