2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
64 lines
1,022 B
Nix
64 lines
1,022 B
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.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-pumkDVyotm8bJEl/rrpNSsP8KZIVIgThGFB/Sy4OdUs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|