aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/nbconflux/default.nix
blob: e86119036b5c0534bfd9fcf301d2731408b1c569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildPythonPackage, fetchFromGitHub, nbconvert, pytest, requests, responses }:

buildPythonPackage rec {
  pname = "nbconflux";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "Valassis-Digital-Media";
    repo = "nbconflux";
    rev = version;
    sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
  };

  propagatedBuildInputs = [ nbconvert requests ];

  checkInputs = [ pytest responses ];

  checkPhase = ''
    pytest tests
  '';

  meta = with lib; {
    description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
    homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
    license = licenses.bsd3;
    maintainers = [ maintainers.arnoldfarkas ];
  };
}