nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 docutils,
7 oset,
8 pybtex,
9 pybtex-docutils,
10 sphinx,
11 sphinx-autoapi,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "sphinxcontrib-bibtex";
17 version = "2.6.5";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "mcmtroffaes";
22 repo = "sphinxcontrib-bibtex";
23 tag = version;
24 hash = "sha256-sT23DkIfJcb3cFBFdL31RRzlDoJRcCUYIdpUVuYjGuo=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 docutils
31 oset
32 pybtex
33 pybtex-docutils
34 sphinx
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 sphinx-autoapi
40 ];
41
42 pythonImportsCheck = [ "sphinxcontrib.bibtex" ];
43
44 pythonNamespaces = [ "sphinxcontrib" ];
45
46 meta = {
47 description = "Sphinx extension for BibTeX style citations";
48 homepage = "https://github.com/mcmtroffaes/sphinxcontrib-bibtex";
49 license = lib.licenses.bsd2;
50 maintainers = [ ];
51 };
52}