2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nbformat,
|
|
|
|
nbclient,
|
|
|
|
ipykernel,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
traitlets,
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testbook";
|
|
|
|
version = "0.4.2";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nteract";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-qaDgae/5TRpjmjOf7aom7TC5HLHp0PHM/ds47AKtq8U=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
nbclient
|
|
|
|
nbformat
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
ipykernel
|
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "testbook" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A unit testing framework extension for testing code in Jupyter Notebooks";
|
|
|
|
homepage = "https://testbook.readthedocs.io/";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ djacu ];
|
|
|
|
};
|
|
|
|
}
|