Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 dulwich, 6 pbr, 7 sphinx, 8 pythonAtLeast, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "openstackdocstheme"; 14 version = "3.4.0"; 15 pyproject = true; 16 17 # breaks on import due to distutils import through pbr.packaging 18 disabled = pythonAtLeast "3.12"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-YA3nY7Q6UM9sviGRUh08EwwLEjneO2KAh4Hsr/hn25U="; 23 }; 24 25 postPatch = '' 26 patchShebangs bin/ 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 dulwich 33 pbr 34 sphinx 35 ]; 36 37 # no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "openstackdocstheme" ]; 41 42 meta = with lib; { 43 description = "Sphinx theme for RST-sourced documentation published to docs.openstack.org"; 44 homepage = "https://github.com/openstack/openstackdocstheme"; 45 license = licenses.asl20; 46 maintainers = teams.openstack.members; 47 }; 48}