nixpkgs/pkgs/development/python-modules/testbook/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

52 lines
931 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
nbformat,
nbclient,
ipykernel,
pandas,
pytestCheckHook,
setuptools,
traitlets,
}:
buildPythonPackage rec {
pname = "testbook";
version = "0.4.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nteract";
repo = pname;
rev = version;
hash = "sha256-qaDgae/5TRpjmjOf7aom7TC5HLHp0PHM/ds47AKtq8U=";
};
propagatedBuildInputs = [
nbclient
nbformat
];
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
ipykernel
pandas
pytestCheckHook
traitlets
];
pythonImportsCheck = [ "testbook" ];
meta = with lib; {
description = "Unit testing framework extension for testing code in Jupyter Notebooks";
homepage = "https://testbook.readthedocs.io/";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ djacu ];
};
}