nixpkgs/pkgs/tools/typesetting/rfc-bibtex/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

34 lines
682 B
Nix

{ 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 ];
};
}