blob: 2b4c21903783be1e7610e7fa99d6bdfb335467bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
hatchling,
hatch-jupyter-builder,
jupyterlab,
bqplot,
ipywidgets,
pandas,
py2vega,
yarn-berry_3,
}:
let
yarn-berry = yarn-berry_3;
in
buildPythonPackage rec {
pname = "ipydatagrid";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyter-widgets";
repo = "ipydatagrid";
tag = version;
hash = "sha256-6jaIYgLbNXIYzM+mZIVMZ1CXOpcbVK5k9nzGjq5UdLI=";
};
build-system = [
hatchling
hatch-jupyter-builder
jupyterlab
];
nativeBuildInputs = [
yarn-berry.yarnBerryConfigHook
yarn-berry
];
dependencies = [
bqplot
ipywidgets
pandas
py2vega
];
offlineCache = yarn-berry.fetchYarnBerryDeps {
inherit src;
hash = "sha256-5KZl9mK6xNvy2XdWieH20hEZJ+h/KzvjOfpo78FlWpg=";
};
preConfigure = ''
substituteInPlace pyproject.toml package.json \
--replace-fail 'jlpm' 'yarn'
'';
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Fast Datagrid widget for the Jupyter Notebook and JupyterLab";
homepage = "https://github.com/jupyter-widgets/ipydatagrid";
changelog = "https://github.com/jupyter-widgets/ipydatagrid/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ flokli ];
};
}
|