Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 docutils, 8 importlib-metadata, 9 oset, 10 pybtex, 11 pybtex-docutils, 12 sphinx, 13 sphinx-autoapi, 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "sphinxcontrib-bibtex"; 19 version = "2.6.3"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "mcmtroffaes"; 26 repo = "sphinxcontrib-bibtex"; 27 tag = version; 28 hash = "sha256-cqz5Jamtlflo5rFhWPCPlYoymApUtXPG4oTRjfDI+WY="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = 34 [ 35 docutils 36 oset 37 pybtex 38 pybtex-docutils 39 sphinx 40 ] 41 ++ lib.optionals (pythonOlder "3.10") [ 42 importlib-metadata 43 ]; 44 45 nativeCheckInputs = [ 46 pytestCheckHook 47 sphinx-autoapi 48 ]; 49 50 pythonImportsCheck = [ "sphinxcontrib.bibtex" ]; 51 52 pythonNamespaces = [ "sphinxcontrib" ]; 53 54 meta = with lib; { 55 description = "Sphinx extension for BibTeX style citations"; 56 homepage = "https://github.com/mcmtroffaes/sphinxcontrib-bibtex"; 57 license = licenses.bsd2; 58 maintainers = [ ]; 59 }; 60}