about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/rfc-bibtex/default.nix
blob: a748983222efbe60bffc520a3a0887ecc52a0364 (plain) (blame)
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
{ lib
, fetchFromGitHub
, python3
}:

with python3.pkgs; buildPythonApplication rec {
  pname = "rfc-bibtex";
  version = "0.3.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "iluxonchik";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-bPCNQqiG50vWVFA6J2kyxftwsXunHTNBdSkoIRYkb0s=";
  };

  nativeCheckInputs = [
    pytestCheckHook
    vcrpy
  ];

  pythonImportsCheck = [
    "rfc_bibtex"
  ];

  meta = with lib; {
    homepage = "https://github.com/iluxonchik/rfc-bibtex/";
    description = "Generate Bibtex entries for IETF RFCs and Internet-Drafts";
    license = licenses.mit;
    maintainers = with maintainers; [ teto ];
  };
}