2019-02-20 18:55:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readthedocs-sphinx-ext";
|
2019-11-19 14:35:38 +00:00
|
|
|
version = "1.0.1";
|
2019-02-20 18:55:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:38 +00:00
|
|
|
sha256 = "c920d8129752ee3f339c8cf3dfeba800a25730249d6ab43dc9b3c384312d1d32";
|
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";
|
2020-04-01 01:11:51 +00: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
|
|
|
};
|
|
|
|
}
|