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