diff options
Diffstat (limited to 'pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix')
-rw-r--r-- | pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix b/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix new file mode 100644 index 0000000000000..2950f34f386b2 --- /dev/null +++ b/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix @@ -0,0 +1,57 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, setuptools +, pytestCheckHook +, zope_interface +, zope_testrunner +, sphinx +}: + +buildPythonPackage rec { + pname = "repoze-sphinx-autointerface"; + version = "1.0.0"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + pname = "repoze.sphinx.autointerface"; + inherit version; + hash = "sha256-SGvxQjpGlrkVPkiM750ybElv/Bbd6xSwyYh7RsYOKKE="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + zope_interface + sphinx + ]; + + nativeCheckInputs = [ + pytestCheckHook + zope_testrunner + ]; + + pythonImportsCheck = [ + "repoze.sphinx.autointerface" + ]; + + pythonNamespaces = [ + "repoze" + "repoze.sphinx" + ]; + + meta = with lib; { + homepage = "https://github.com/repoze/repoze.sphinx.autointerface"; + description = "Auto-generate Sphinx API docs from Zope interfaces"; + changelog = "https://github.com/repoze/repoze.sphinx.autointerface/blob/${version}/CHANGES.rst"; + license = licenses.bsd0; + maintainers = with maintainers; [ domenkozar ]; + # https://github.com/repoze/repoze.sphinx.autointerface/issues/21 + broken = versionAtLeast sphinx.version "7.2"; + }; +} |