depot/third_party/nixpkgs/pkgs/development/python-modules/boxx/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

64 lines
1,017 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, xvfb-run
, matplotlib
, scikitimage
, numpy
, pandas
, imageio
, snakeviz
, fn
, pyopengl
, seaborn
, pytorch
, pythonOlder
, torchvision
}:
buildPythonPackage rec {
pname = "boxx";
version = "0.10.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6qO/aPegHk+1PAu8qzIkC3fULh2WjgJcqNui+XEaLQw=";
};
propagatedBuildInputs = [
matplotlib
scikitimage
numpy
pandas
imageio
snakeviz
fn
pyopengl
seaborn
];
checkInputs = [
xvfb-run
pytorch
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 ];
};
}