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

python3Packages.testbook: init at 0.4.2
This commit is contained in:
Rok Garbas 2022-11-03 21:02:00 +01:00 committed by GitHub
commit 21f05fc42b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 0 deletions

View file

@ -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";

View file

@ -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 ];
};
}

View file

@ -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 { };