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

32 lines
847 B
Nix
Raw Normal View History

2018-02-12 19:30:17 +03:00
{ stdenv, buildPythonApplication, fetchFromGitHub, makeWrapper, cmake
, pytestrunner, pytest, six, pyparsing, asn1ate }:
2016-08-07 18:26:56 +03:00
2018-02-12 19:30:17 +03:00
buildPythonApplication rec {
2016-08-07 18:26:56 +03:00
pname = "asn2quickder";
2018-02-12 19:30:17 +03:00
version = "1.2-6";
2016-08-07 18:26:56 +03:00
src = fetchFromGitHub {
2018-02-12 19:30:17 +03:00
sha256 = "00wifjydgmqw2i5vmr049visc3shjqccgzqynkmmhkjhs86ghzr6";
2016-08-07 18:26:56 +03:00
rev = "version-${version}";
owner = "vanrein";
2018-02-12 19:30:17 +03:00
repo = "quick-der";
2016-08-07 18:26:56 +03:00
};
2018-02-12 19:30:17 +03:00
patchPhase = ''
patchShebangs ./python/scripts/*
'';
2016-08-07 18:26:56 +03:00
2018-02-12 19:30:17 +03:00
buildInputs = [ makeWrapper cmake ];
checkInputs = [ pytestrunner pytest ];
2016-08-07 18:26:56 +03:00
2018-02-12 19:30:17 +03:00
propagatedBuildInputs = [ pyparsing asn1ate six ];
2016-08-07 18:26:56 +03:00
meta = with stdenv.lib; {
description = "An ASN.1 compiler with a backend for Quick DER";
homepage = https://github.com/vanrein/asn2quickder;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ leenaars ];
};
}