2019-02-20 18:55:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readthedocs-sphinx-ext";
|
2019-02-22 09:05:40 +00:00
|
|
|
version = "0.5.17";
|
2019-02-20 18:55:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-22 09:05:40 +00:00
|
|
|
sha256 = "21097cbb37c9a0590e2cb444b55bd87302fc8f69640fa2d4f2d113e98e9558ff";
|
2019-02-20 18:55:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock sphinx ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sphinx extension for Read the Docs overrides";
|
|
|
|
homepage = http://github.com/rtfd/readthedocs-sphinx-ext;
|
2019-02-22 09:05:40 +00:00
|
|
|
license = licenses.mit;
|
2019-02-20 18:55:45 +00:00
|
|
|
};
|
|
|
|
}
|