python310Packages.nbconflux: fix build
This commit is contained in:
parent
9ca785644d
commit
f4f6be1e9a
|
@ -16,14 +16,19 @@ buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Valassis-Digital-Media";
|
owner = "Valassis-Digital-Media";
|
||||||
repo = "nbconflux";
|
repo = "nbconflux";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
|
hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ nbconvert requests ];
|
propagatedBuildInputs = [ nbconvert requests ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook responses ];
|
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";
|
JUPYTER_PATH="${nbconvert}/share/jupyter";
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_post_to_confluence"
|
"test_post_to_confluence"
|
||||||
|
|
16
pkgs/development/python-modules/nbconflux/setup-py.patch
Normal file
16
pkgs/development/python-modules/nbconflux/setup-py.patch
Normal 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',
|
||||||
|
],
|
||||||
|
)
|
Loading…
Reference in a new issue