python310Packages: fvcore init at 0.1.5.post20221221

This commit is contained in:
happysalada 2023-07-10 18:03:29 +08:00 committed by Yt
parent fda44caeda
commit bc508bdf7a
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,66 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build inputs
, numpy
, yacs
, pyyaml
, tqdm
, termcolor
, pillow
, tabulate
, iopath
, shapely
# check inputs
, torch
}:
let
pname = "fvcore";
version = "0.1.5.post20221221";
optional-dependencies = {
all = [ shapely ];
};
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-8vsLuQVyrmUcEceOIEk+0ZsiQFUKfku7LW3oe90DeGA=";
};
propagatedBuildInputs = [
numpy
yacs
pyyaml
tqdm
termcolor
pillow
tabulate
iopath
];
nativeCheckInputs = [
torch
];
# TypeError: flop_count() missing 2 required positional arguments: 'model' and 'inputs'
doCheck = false;
pythonImportsCheck = [
"fvcore"
];
passthru.optional-dependencies = optional-dependencies;
meta = with lib; {
description = "Collection of common code that's shared among different research projects in FAIR computer vision team";
homepage = "https://github.com/facebookresearch/fvcore";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}

View File

@ -3991,6 +3991,8 @@ self: super: with self; {
fuzzywuzzy = callPackage ../development/python-modules/fuzzywuzzy { };
fvcore = callPackage ../development/python-modules/fvcore { };
fvs = callPackage ../development/python-modules/fvs { };
fx2 = callPackage ../development/python-modules/fx2 { };