depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
943 B
Nix

{ lib
, buildPythonPackage
, deepmerge
, fetchPypi
, fetchpatch
, isPy27
, setuptools-scm
, jsonschema
, picobox
, pyyaml
, sphinx-mdinclude
, sphinxcontrib-httpdomain
}:
buildPythonPackage rec {
pname = "sphinxcontrib-openapi";
version = "0.8.3";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-nGIRdUC1J2AGrHrUrzRpbQKvJ4r6KZcSdAw2gKmp3mw=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
deepmerge
jsonschema
picobox
pyyaml
sphinx-mdinclude
sphinxcontrib-httpdomain
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
license = licenses.bsd0;
maintainers = [ maintainers.flokli ];
};
}