nixpkgs/pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix
2020-06-06 08:34:58 +02:00

33 lines
602 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, pytest
, mock
, sphinx
}:
buildPythonPackage rec {
pname = "readthedocs-sphinx-ext";
version = "1.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "33dbb135373d539233f7fbdb5e8dcfa07d41254300ee23719eb9caa8c68a40ae";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ 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;
};
}