2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
ipykernel,
|
|
|
|
nbclient,
|
|
|
|
nbformat,
|
|
|
|
pygments,
|
|
|
|
pytest,
|
|
|
|
pyyaml,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
typing-extensions,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbmake";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.5.4";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "treebeardtech";
|
|
|
|
repo = "nbmake";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-OzjqpipFb5COhqc//Sg6OU65ShPrYe/KtxifToEXveg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
poetry-core
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
ipykernel
|
|
|
|
nbclient
|
|
|
|
nbformat
|
|
|
|
pygments
|
|
|
|
pytest
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "nbclient" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nbmake" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
description = "Pytest plugin for testing notebooks";
|
|
|
|
homepage = "https://github.com/treebeardtech/nbmake";
|
|
|
|
changelog = "https://github.com/treebeardtech/nbmake/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
}
|