Unverified Commit 21f05fc4 authored by Rok Garbas's avatar Rok Garbas Committed by GitHub
Browse files

Merge pull request #197551 from djacu/feature/add-testbook-to-python-modules

python3Packages.testbook: init at 0.4.2
parents bdcc0530 cd4b3650
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+49 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };