1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8 setuptools,
9
10 # dependencies
11 docutils,
12 nicegui,
13}:
14
15buildPythonPackage rec {
16 pname = "nicegui-highcharts";
17 version = "2.1.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "zauberzeug";
22 repo = "nicegui-highcharts";
23 tag = "v${version}";
24 hash = "sha256-9COui3gqLZqJSeZyzazxQcOc2oM9Li+dLBoy5VcEKBw=";
25 };
26
27 postPatch = ''
28 substituteInPlace pyproject.toml \
29 --replace-fail "setuptools>=30.3.0,<50" "setuptools"
30 '';
31
32 pythonRelaxDeps = [
33 "docutils"
34 "nicegui"
35 ];
36
37 build-system = [
38 poetry-core
39 setuptools
40 ];
41
42 dependencies = [
43 docutils
44 nicegui
45 ];
46
47 # Module has no tests
48 doCheck = false;
49
50 pythonImportsCheck = [ "nicegui_highcharts" ];
51
52 meta = {
53 description = "NiceGUI with support for Highcharts";
54 homepage = "https://github.com/zauberzeug/nicegui-highcharts";
55 changelog = "https://github.com/zauberzeug/nicegui-highcharts/releases/tag/v${version}";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ fab ];
58 };
59}