1{ lib, buildPythonPackage, fetchFromGitHub, nbconvert, pytest, requests, responses }:
2
3buildPythonPackage rec {
4 pname = "nbconflux";
5 version = "0.7.0";
6
7 src = fetchFromGitHub {
8 owner = "Valassis-Digital-Media";
9 repo = "nbconflux";
10 rev = version;
11 sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
12 };
13
14 propagatedBuildInputs = [ nbconvert requests ];
15
16 checkInputs = [ pytest responses ];
17
18 checkPhase = ''
19 pytest tests
20 '';
21
22 meta = with lib; {
23 description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
24 homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
25 license = licenses.bsd3;
26 maintainers = [ maintainers.arnoldfarkas ];
27 };
28}