2019-02-20 18:55:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readthedocs-sphinx-ext";
|
2019-10-24 07:47:47 +01:00
|
|
|
version = "1.0.0";
|
2019-02-20 18:55:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:47 +01:00
|
|
|
sha256 = "cc94753be6b2db997e3291046b39e49d578f6441fd75159db22a51a29d2cf1fc";
|
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";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://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
|
|
|
};
|
|
|
|
}
|