python310Packages: fvcore init at 0.1.5.post20221221
This commit is contained in:
parent
fda44caeda
commit
bc508bdf7a
66
pkgs/development/python-modules/fvcore/default.nix
Normal file
66
pkgs/development/python-modules/fvcore/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user