depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-apidoc/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

39 lines
822 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, setuptools
}:
buildPythonPackage rec {
pname = "sphinxcontrib-apidoc";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-/lnRWIJHKqk8Jzevvepr7bNM41y9NKpJR5CfXfFQCq0=";
};
postPatch = ''
# break infite recursion, remove pytest 4 requirement
rm test-requirements.txt requirements.txt
'';
nativeBuildInputs = [
pbr
setuptools
];
# Check is disabled due to circular dependency of sphinx
doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
description = "Sphinx extension for running sphinx-apidoc on each build";
homepage = "https://github.com/sphinx-contrib/apidoc";
license = licenses.bsd2;
maintainers = teams.openstack.members;
};
}