2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
isPy27,
|
|
|
|
nbconvert,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
|
|
|
responses,
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbconflux";
|
|
|
|
version = "0.7.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-19 00:13:47 +00:00
|
|
|
disabled = isPy27; # no longer compatible with python 2 urllib
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Valassis-Digital-Media";
|
|
|
|
repo = "nbconflux";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
nbconvert
|
|
|
|
requests
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
patches = [
|
|
|
|
# The original setup.py file is missing commas in the install_requires list
|
|
|
|
./setup-py.patch
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
2021-02-13 14:23:35 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_post_to_confluence"
|
|
|
|
"test_optional_components"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nbconflux";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
|
|
};
|
|
|
|
}
|