Files
nixpkgs/pkgs/development/python-modules/nbconflux/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
mainProgram = "nbconflux";
homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.arnoldfarkas ];
};
}