1{
2 lib,
3 buildPythonPackage,
4 docutils,
5 fetchPypi,
6 pybtex,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "pybtex-docutils";
13 version = "1.0.3";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-On69+StZPgDowcU4qpogvKXZLYQjESRxWsyWTVHZPGs=";
21 };
22
23 buildInputs = [
24 docutils
25 pybtex
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "pybtex_docutils" ];
31
32 meta = with lib; {
33 description = "Docutils backend for pybtex";
34 homepage = "https://github.com/mcmtroffaes/pybtex-docutils";
35 license = licenses.mit;
36 };
37}