depot/third_party/nixpkgs/pkgs/development/python-modules/openstackdocstheme/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

48 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
dulwich,
pbr,
sphinx,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "openstackdocstheme";
version = "3.4.0";
pyproject = true;
# breaks on import due to distutils import through pbr.packaging
disabled = pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-YA3nY7Q6UM9sviGRUh08EwwLEjneO2KAh4Hsr/hn25U=";
};
postPatch = ''
patchShebangs bin/
'';
build-system = [ setuptools ];
dependencies = [
dulwich
pbr
sphinx
];
# no tests
doCheck = false;
pythonImportsCheck = [ "openstackdocstheme" ];
meta = with lib; {
description = "Sphinx theme for RST-sourced documentation published to docs.openstack.org";
homepage = "https://github.com/openstack/openstackdocstheme";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}