1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 nbconvert,
6 pytestCheckHook,
7 requests,
8 responses,
9 setuptools,
10 versioneer,
11}:
12
13buildPythonPackage rec {
14 pname = "nbconflux";
15 version = "0.7.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "vericast";
20 repo = "nbconflux";
21 tag = version;
22 hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
23 };
24
25 build-system = [
26 setuptools
27 versioneer
28 ];
29
30 dependencies = [
31 nbconvert
32 requests
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 responses
38 ];
39
40 patches = [
41 # The original setup.py file is missing commas in the install_requires list
42 ./setup-py.patch
43 ];
44
45 postPatch = ''
46 # remove vendorized versioneer.py
47 rm versioneer.py
48 '';
49
50 JUPYTER_PATH = "${nbconvert}/share/jupyter";
51 disabledTests = [
52 "test_post_to_confluence"
53 "test_optional_components"
54 ];
55
56 meta = with lib; {
57 description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
58 mainProgram = "nbconflux";
59 homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
60 license = licenses.bsd3;
61 maintainers = [ maintainers.arnoldfarkas ];
62 };
63}