Files
nixpkgs/pkgs/development/python-modules/fvcore/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# 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";
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" ];
optional-dependencies = optional-dependencies;
meta = {
description = "Collection of common code that's shared among different research projects in FAIR computer vision team";
homepage = "https://github.com/facebookresearch/fvcore";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}