Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nbconvert,
|
|
pytestCheckHook,
|
|
requests,
|
|
responses,
|
|
setuptools,
|
|
versioneer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbconflux";
|
|
version = "0.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vericast";
|
|
repo = "nbconflux";
|
|
tag = version;
|
|
hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
nbconvert
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
patches = [
|
|
# The original setup.py file is missing commas in the install_requires list
|
|
./setup-py.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
# remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
|
disabledTests = [
|
|
"test_post_to_confluence"
|
|
"test_optional_components"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
|
|
mainProgram = "nbconflux";
|
|
homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
};
|
|
}
|