nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, dulwich
5, pbr
6, sphinx
7}:
8
9buildPythonPackage rec {
10 pname = "openstackdocstheme";
11 version = "2.4.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-dFrZTObRDKB8aw1/i6febpttymbY3cPzA3ckNuhVt4c=";
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}