1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, jupyter-packaging
6, bqscales
7, ipywidgets
8, numpy
9, pandas
10, traitlets
11, traittypes
12}:
13
14buildPythonPackage rec {
15 pname = "bqplot";
16 version = "0.12.39";
17
18 format = "pyproject";
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-FNjeb5pNGUW76mwTIOpNHJMlb3JoN3T24AINzFefPdI=";
24 };
25
26 nativeBuildInputs = [
27 jupyter-packaging
28 ];
29
30 propagatedBuildInputs = [
31 bqscales
32 ipywidgets
33 numpy
34 pandas
35 traitlets
36 traittypes
37 ];
38
39 # no tests in PyPI dist, and not obvious to me how to build the js files from GitHub
40 doCheck = false;
41
42 pythonImportsCheck = [
43 "bqplot"
44 "bqplot.pyplot"
45 ];
46
47 meta = {
48 description = "2D plotting library for Jupyter based on Grammar of Graphics";
49 homepage = "https://bqplot.github.io/bqplot";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ bcdarwin ];
52 };
53}