1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 hatchling,
7 hatch-jupyter-builder,
8 hatch-nodejs-version,
9 jupyterlab,
10 ploomber-core,
11 pytestCheckHook,
12 pytest-jupyter,
13}:
14
15buildPythonPackage rec {
16 pname = "ploomber-extension";
17 version = "0.1.1";
18
19 pyproject = true;
20 disabled = pythonOlder "3.6";
21
22 # using pypi archive which includes pre-built assets
23 src = fetchPypi {
24 pname = "ploomber_extension";
25 inherit version;
26 hash = "sha256-wsldqLhJfOESH9aMMzz1Y/FXofHyfgrl81O95NePXSA=";
27 };
28
29 build-system = [
30 hatchling
31 hatch-jupyter-builder
32 hatch-nodejs-version
33 jupyterlab
34 ];
35
36 dependencies = [ ploomber-core ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-jupyter
41 ];
42
43 pythonImportsCheck = [ "ploomber_extension" ];
44
45 meta = with lib; {
46 description = "Ploomber extension";
47 homepage = "https://pypi.org/project/ploomber-extension";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ pacien ];
50 };
51}