python310Packages.nbconflux: fix build

This commit is contained in:
Gaetan Lepage 2023-07-21 14:31:19 +02:00
parent 9ca785644d
commit f4f6be1e9a
2 changed files with 23 additions and 2 deletions

View file

@ -16,14 +16,19 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Valassis-Digital-Media";
repo = "nbconflux";
rev = version;
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
rev = "refs/tags/${version}";
hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
};
propagatedBuildInputs = [ nbconvert requests ];
nativeCheckInputs = [ pytestCheckHook responses ];
patches = [
# The original setup.py file is missing commas in the install_requires list
./setup-py.patch
];
JUPYTER_PATH="${nbconvert}/share/jupyter";
disabledTests = [
"test_post_to_confluence"

View file

@ -0,0 +1,16 @@
diff --git a/setup.py b/setup.py
index 26f882d..b7ccf67 100644
--- a/setup.py
+++ b/setup.py
@@ -27,8 +27,8 @@ setup(
]
},
install_requires=[
- 'nbconvert>=5.3'
- 'requests'
- 'traitlets'
+ 'nbconvert>=5.3',
+ 'requests',
+ 'traitlets',
],
)