summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/streamlit-echarts/default.nix
blob: b0032853b1007ef7827e6fb596d8bd96849271a0 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pyecharts,
  setuptools,
  streamlit,
}:

buildPythonPackage rec {
  pname = "streamlit-echarts";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "andfanilo";
    repo = "streamlit-echarts";
    tag = "v${version}";
    hash = "sha256-VNliCZPkAYUx+TacBc6PrS4C4bjM5fmVx/Sj6aSw2Yc=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pyecharts
    streamlit
  ];

  pythonImportsCheck = [ "streamlit_echarts" ];

  # Module has no tests
  doCheck = false;

  meta = {
    description = "Streamlit component to render ECharts";
    homepage = "https://github.com/andfanilo/streamlit-echarts";
    changelog = "https://github.com/andfanilo/streamlit-echarts/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}