depot/third_party/nixpkgs/pkgs/development/python-modules/pywick/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

73 lines
1.1 KiB
Nix

{ buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, dill
, h5py
, hickle
, numpy
, opencv4
, pandas
, pillow
, pycm
, pyyaml
, scipy
, requests
, scikitimage
, six
, tabulate
, torch
, torchvision
, tqdm
, yacs
, lib
}:
buildPythonPackage rec {
pname = "pywick";
version = "0.6.5";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "achaiah";
repo = pname;
rev = "v${version}";
sha256 = "0wnijdvqgdpzfdsy1cga3bsr0n7zzsl8hp4dskqwxx087g5h1r84";
};
postPatch = ''
substituteInPlace setup.py --replace "opencv-python-headless" "opencv"
'';
propagatedBuildInputs = [
dill
h5py
hickle
numpy
opencv4
pandas
pillow
pycm
pyyaml
scipy
requests
scikitimage
tabulate
torch
torchvision
tqdm
six
yacs
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "High-level training framework for Pytorch";
homepage = "https://github.com/achaiah/pywick";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
broken = true; # Nixpkgs missing `albumentations` and `prodict`
};
}