diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0b95bedb823b..dc6f8eca59b5 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3478,6 +3478,12 @@ githubId = 8852888; name = "David Izquierdo"; }; + djacu = { + email = "daniel.n.baker@gmail.com"; + github = "djacu"; + githubId = 7043297; + name = "Daniel Baker"; + }; djanatyn = { email = "djanatyn@gmail.com"; github = "djanatyn"; diff --git a/pkgs/development/python-modules/testbook/default.nix b/pkgs/development/python-modules/testbook/default.nix new file mode 100644 index 000000000000..615fb96cd142 --- /dev/null +++ b/pkgs/development/python-modules/testbook/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, nbformat +, nbclient +, ipykernel +, pandas +, pytestCheckHook +, traitlets +}: + +buildPythonPackage rec { + pname = "testbook"; + version = "0.4.2"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "nteract"; + repo = pname; + rev = version; + sha256 = "sha256-qaDgae/5TRpjmjOf7aom7TC5HLHp0PHM/ds47AKtq8U="; + }; + + propagatedBuildInputs = [ + nbclient + nbformat + ]; + + checkInputs = [ + ipykernel + pandas + pytestCheckHook + traitlets + ]; + + pythonImportsCheck = [ + "testbook" + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5248321ec871..3bb78e189be0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10954,6 +10954,8 @@ self: super: with self; { textual = callPackage ../development/python-modules/textual { }; + testbook = callPackage ../development/python-modules/testbook { }; + testing-common-database = callPackage ../development/python-modules/testing-common-database { }; testing-postgresql = callPackage ../development/python-modules/testing-postgresql { };