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