1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, xvfb-run
6, matplotlib
7, scikit-image
8, numpy
9, pandas
10, imageio
11, snakeviz
12, fn
13, pyopengl
14, seaborn
15, torch
16, pythonOlder
17, torchvision
18}:
19
20buildPythonPackage rec {
21 pname = "boxx";
22 version = "0.10.12";
23 format = "setuptools";
24
25 disabled = pythonOlder "3.7";
26
27 src = fetchPypi {
28 inherit pname version;
29 hash = "sha256-pumkDVyotm8bJEl/rrpNSsP8KZIVIgThGFB/Sy4OdUs=";
30 };
31
32 propagatedBuildInputs = [
33 matplotlib
34 scikit-image
35 numpy
36 pandas
37 imageio
38 snakeviz
39 fn
40 pyopengl
41 seaborn
42 ];
43
44 nativeCheckInputs = [
45 xvfb-run
46 torch
47 torchvision
48 ];
49
50 pythonImportsCheck = [
51 "boxx"
52 ];
53
54 checkPhase = ''
55 xvfb-run ${python.interpreter} -m unittest
56 '';
57
58 meta = with lib; {
59 description = "Tool-box for efficient build and debug for Scientific Computing and Computer Vision";
60 homepage = "https://github.com/DIYer22/boxx";
61 license = licenses.mit;
62 maintainers = with maintainers; [ lucasew ];
63 };
64}