1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, hatchling
6, hatch-jupyter-builder
7, jupyterlab
8, ipywidgets
9, numpy
10, traitlets
11, traittypes
12}:
13
14buildPythonPackage rec {
15 pname = "bqscales";
16 version = "0.3.3";
17 pyproject = true;
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-SlnNw4dWOzRedwIN3kCyl95qVqkY92QGOMS3Eyoqk0I=";
23 };
24
25 nativeBuildInputs = [
26 hatch-jupyter-builder
27 hatchling
28 jupyterlab
29 ];
30
31 propagatedBuildInputs = [
32 ipywidgets
33 numpy
34 traitlets
35 traittypes
36 ];
37
38 env.SKIP_JUPYTER_BUILDER = 1;
39
40 # no tests in PyPI dist
41 doCheck = false;
42
43 pythonImportsCheck = [ "bqscales" ];
44
45 meta = {
46 description = "Grammar of Graphics scales for bqplot and other Jupyter widgets libraries";
47 homepage = "https://github.com/bqplot/bqscales";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ bcdarwin ];
50 };
51}