blob: 14c5fe339cf7cdc000d20ba7d1168af3382648b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonApplication,
fetchFromGitLab,
makeWrapper,
cmake,
six,
pyparsing,
asn1ate,
colored,
}:
buildPythonApplication rec {
pname = "asn2quickder";
version = "1.7.1";
format = "setuptools";
src = fetchFromGitLab {
owner = "arpa2";
repo = "quick-der";
rev = "v${version}";
hash = "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 = {
description = "ASN.1 compiler with a backend for Quick DER";
homepage = "https://gitlab.com/arpa2/quick-der";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};
}
|