fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
63 lines
1 KiB
Nix
63 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python,
|
|
xvfb-run,
|
|
matplotlib,
|
|
scikit-image,
|
|
numpy,
|
|
pandas,
|
|
imageio,
|
|
snakeviz,
|
|
fn,
|
|
pyopengl,
|
|
seaborn,
|
|
torch,
|
|
pythonOlder,
|
|
torchvision,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boxx";
|
|
version = "0.10.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-unGnmPksEuqFXHTWJkj9Gv2G/qPDgT6AZXYiG2gtkEA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
scikit-image
|
|
numpy
|
|
pandas
|
|
imageio
|
|
snakeviz
|
|
fn
|
|
pyopengl
|
|
seaborn
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
xvfb-run
|
|
torch
|
|
torchvision
|
|
];
|
|
|
|
pythonImportsCheck = [ "boxx" ];
|
|
|
|
checkPhase = ''
|
|
xvfb-run ${python.interpreter} -m unittest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool-box for efficient build and debug for Scientific Computing and Computer Vision";
|
|
homepage = "https://github.com/DIYer22/boxx";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lucasew ];
|
|
};
|
|
}
|