1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, metakernel
5, svgwrite
6, ipywidgets
7, cairosvg
8, numpy
9}:
10
11buildPythonPackage rec {
12 pname = "calysto";
13 version = "1.0.6";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "Calysto";
18 repo = "calysto";
19 rev = "v${version}";
20 hash = "sha256-lr/cHFshpFs/PGMCsa3FKMRPTP+eE9ziH5XCpV+KzO8=";
21 };
22
23 propagatedBuildInputs = [
24 metakernel
25 svgwrite
26 ipywidgets
27 cairosvg
28 numpy
29 ];
30
31 # there are no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "calysto" ];
35
36 meta = with lib; {
37 description = "Tools for Jupyter and Python";
38 homepage = "https://github.com/Calysto/calysto";
39 license = licenses.bsd2;
40 maintainers = with maintainers; [ kranzes ];
41 };
42}