2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2022-09-11 15:47:08 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, albumentations
|
|
|
|
, dill
|
2020-04-24 23:36:52 +00:00
|
|
|
, h5py
|
|
|
|
, hickle
|
|
|
|
, numpy
|
2022-09-11 15:47:08 +00:00
|
|
|
, opencv4
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
|
|
|
, pillow
|
2022-09-11 15:47:08 +00:00
|
|
|
, prodict
|
|
|
|
, pycm
|
|
|
|
, pyyaml
|
|
|
|
, scipy
|
|
|
|
, requests
|
|
|
|
, scikitimage
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
2022-09-11 15:47:08 +00:00
|
|
|
, tabulate
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2020-04-24 23:36:52 +00:00
|
|
|
, torchvision
|
|
|
|
, tqdm
|
2022-09-11 15:47:08 +00:00
|
|
|
, yacs
|
2020-04-24 23:36:52 +00:00
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywick";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.6.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achaiah";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "0wnijdvqgdpzfdsy1cga3bsr0n7zzsl8hp4dskqwxx087g5h1r84";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "opencv-python-headless" "opencv"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-11 15:47:08 +00:00
|
|
|
albumentations
|
|
|
|
dill
|
|
|
|
h5py
|
|
|
|
hickle
|
|
|
|
numpy
|
|
|
|
opencv4
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
prodict
|
|
|
|
pycm
|
|
|
|
pyyaml
|
|
|
|
scipy
|
|
|
|
requests
|
|
|
|
scikitimage
|
|
|
|
tabulate
|
|
|
|
torch
|
|
|
|
torchvision
|
|
|
|
tqdm
|
|
|
|
six
|
|
|
|
yacs
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-level training framework for Pytorch";
|
|
|
|
homepage = "https://github.com/achaiah/pywick";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|