1{ lib
2, buildPythonPackage
3, fetchPypi
4, dulwich
5, pbr
6, sphinx
7}:
8
9buildPythonPackage rec {
10 pname = "openstackdocstheme";
11 version = "3.2.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-PwSWLJr5Hjwz8cRXXutnE4Jc+vLcL3TJTZl6biK/4E4=";
16 };
17
18 postPatch = ''
19 # only a small portion of the listed packages are actually needed for running the tests
20 # so instead of removing them one by one remove everything
21 rm test-requirements.txt
22 '';
23
24 propagatedBuildInputs = [ dulwich pbr sphinx ];
25
26 # no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "openstackdocstheme" ];
30
31 meta = with lib; {
32 description = "Sphinx theme for RST-sourced documentation published to docs.openstack.org";
33 homepage = "https://github.com/openstack/openstackdocstheme";
34 license = licenses.asl20;
35 maintainers = teams.openstack.members;
36 };
37}