Merge pull request #197551 from djacu/feature/add-testbook-to-python-modules
python3Packages.testbook: init at 0.4.2
This commit is contained in:
commit
21f05fc42b
3 changed files with 57 additions and 0 deletions
|
@ -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
pkgs/development/python-modules/testbook/default.nix
Normal file
49
pkgs/development/python-modules/testbook/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue