nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, pytest
6, mock
7, sphinx
8}:
9
10buildPythonPackage rec {
11 pname = "readthedocs-sphinx-ext";
12 version = "1.0.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "c920d8129752ee3f339c8cf3dfeba800a25730249d6ab43dc9b3c384312d1d32";
17 };
18
19 propagatedBuildInputs = [ requests ];
20
21 checkInputs = [ pytest mock sphinx ];
22
23 checkPhase = ''
24 py.test
25 '';
26
27 meta = with lib; {
28 description = "Sphinx extension for Read the Docs overrides";
29 homepage = https://github.com/rtfd/readthedocs-sphinx-ext;
30 license = licenses.mit;
31 };
32}