2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, xvfb-run
|
|
|
|
, matplotlib
|
2023-05-24 13:37:59 +00:00
|
|
|
, scikit-image
|
2022-01-13 20:06:32 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, imageio
|
|
|
|
, snakeviz
|
|
|
|
, fn
|
|
|
|
, pyopengl
|
|
|
|
, seaborn
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2022-01-13 20:06:32 +00:00
|
|
|
, torchvision
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "boxx";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.10.9";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-fWOGKDk7eJVlE9LMau3DZF8nFLUrmHpunAXdqLxHFHk=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2022-01-13 20:06:32 +00:00
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
imageio
|
|
|
|
snakeviz
|
|
|
|
fn
|
|
|
|
pyopengl
|
|
|
|
seaborn
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
xvfb-run
|
2022-09-09 14:08:57 +00:00
|
|
|
torch
|
2022-01-13 20:06:32 +00:00
|
|
|
torchvision
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"boxx"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run ${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Tool-box for efficient build and debug for Scientific Computing and Computer Vision";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/DIYer22/boxx";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|