1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 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 pyproject = true; 19 20 # using pypi archive which includes pre-built assets 21 src = fetchPypi { 22 pname = "ploomber_extension"; 23 inherit version; 24 hash = "sha256-wsldqLhJfOESH9aMMzz1Y/FXofHyfgrl81O95NePXSA="; 25 }; 26 27 build-system = [ 28 hatchling 29 hatch-jupyter-builder 30 hatch-nodejs-version 31 jupyterlab 32 ]; 33 34 dependencies = [ ploomber-core ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 pytest-jupyter 39 ]; 40 41 # Tests fail on Darwin when sandboxed 42 doCheck = !stdenv.buildPlatform.isDarwin; 43 44 pythonImportsCheck = [ "ploomber_extension" ]; 45 46 meta = { 47 description = "Ploomber extension"; 48 homepage = "https://pypi.org/project/ploomber-extension"; 49 license = lib.licenses.bsd3; 50 maintainers = [ lib.maintainers.euxane ]; 51 }; 52}