From 714c0781c3bd9956b26becccc05d2f997afd4aa3 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 11 Oct 2018 16:17:40 +0900 Subject: [PATCH] rfc-bibtex: init at 2.2.1 Generate bibtex entries from IETF rfc/drafts, for instance: $ rfcbibtex RFC5246 draft-ietf-tls-tls13-21 @techreport{RFC5246, author = {T. Dierks and E. Rescorla}, title = {{The Transport Layer Security (TLS) Protocol Version 1.2}}, howpublished = {Internet Requests for Comments}, type = {RFC}, number = {5246}, year = {2008}, month = {August}, issn = {2070-1721}, publisher = {RFC Editor}, institution = {RFC Editor}, url = {http://www.rfc-editor.org/rfc/rfc5246.txt}, note = {\url{http://www.rfc-editor.org/rfc/rfc5246.txt}}, } @techreport{I-D.ietf-tls-tls13, author = {Eric Rescorla}, title = {{The Transport Layer Security (TLS) Protocol Version 1.3}}, howpublished = {Working Draft}, type = {Internet-Draft}, number = {draft-ietf-tls-tls13-21}, year = {2017}, month = {July}, institution = {IETF Secretariat}, url = {http://www.ietf.org/internet-drafts/draft-ietf-tls-tls13-21.txt}, note = {\url{http://www.ietf.org/internet-drafts/draft-ietf-tls-tls13-21.txt}}, } --- .../python-modules/rfc-bibtex/default.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/rfc-bibtex/default.nix diff --git a/pkgs/development/python-modules/rfc-bibtex/default.nix b/pkgs/development/python-modules/rfc-bibtex/default.nix new file mode 100644 index 00000000000000..a1626d6b65c309 --- /dev/null +++ b/pkgs/development/python-modules/rfc-bibtex/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonApplication, fetchPypi, isPy3k }: + +buildPythonApplication rec { + pname = "rfc-bibtex"; + version = "0.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1p8xjgq4rig1jgqy5jqh34mbifxgxsyyxh8sizwz2wyixf8by8lq"; + }; + + disabled = !isPy3k; + + meta = with stdenv.lib; { + homepage = ttps://github.com/iluxonchik/rfc-bibtex/; + description = "Generate Bibtex entries for IETF RFCs and Internet-Drafts"; + license = licenses.mit; + maintainers = with maintainers; [ teto ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e808b70fb41ebc..a33d1bd0ccaad7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22033,6 +22033,8 @@ with pkgs; retrofe = callPackage ../misc/emulators/retrofe { }; + rfc-bibtex = python3Packages.callPackage ../development/python-modules/rfc-bibtex { }; + rpl = callPackage ../tools/text/rpl { pythonPackages = python3Packages; };