at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 jupyter-packaging, 7 jupyterlab, 8 bqscales, 9 ipywidgets, 10 numpy, 11 pandas, 12 traitlets, 13 traittypes, 14}: 15 16buildPythonPackage rec { 17 pname = "bqplot"; 18 version = "0.12.45"; 19 pyproject = true; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-7eAOn999kuQ8wtG5aRx9oXa2IW/dGHyOkvGde+rKXio="; 24 }; 25 26 # upstream seems in flux for 0.13 release. they seem to want to migrate from 27 # jupyter_packaging to hatch, so let's patch instead of fixing upstream 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace "jupyter_packaging~=" "jupyter_packaging>=" \ 31 --replace "jupyterlab~=" "jupyterlab>=" 32 ''; 33 34 build-system = [ 35 jupyter-packaging 36 jupyterlab 37 ]; 38 39 dependencies = [ 40 bqscales 41 ipywidgets 42 numpy 43 pandas 44 traitlets 45 traittypes 46 ]; 47 48 # no tests in PyPI dist, and not obvious to me how to build the js files from GitHub 49 doCheck = false; 50 51 pythonImportsCheck = [ 52 "bqplot" 53 "bqplot.pyplot" 54 ]; 55 56 meta = { 57 description = "2D plotting library for Jupyter based on Grammar of Graphics"; 58 homepage = "https://bqplot.github.io/bqplot"; 59 license = lib.licenses.asl20; 60 maintainers = with lib.maintainers; [ bcdarwin ]; 61 }; 62}