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

33 lines
618 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, pytest
, mock
, sphinx
}:
buildPythonPackage rec {
pname = "readthedocs-sphinx-ext";
version = "2.2.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-kiF77xTZE3e88nvffaNj5XSzseQYC2Xu9ufPpV8P0Lg=";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ pytest mock sphinx ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Sphinx extension for Read the Docs overrides";
homepage = "https://github.com/rtfd/readthedocs-sphinx-ext";
license = licenses.mit;
};
}