Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 113 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114{ lib, backoff, buildPythonPackage, fetchFromGitHub, geojson, google-api-core, imagesize, nbconvert, nbformat, ndjson, numpy, opencv # , opencv-python, packaging, pillow, pydantic # , pygeotile, pyproj, pytest-cases, pytestCheckHook, pythonOlder, pythonRelaxDepsHook, rasterio, requests, shapely, tqdm, typeguard, typing-extensions}:
buildPythonPackage rec { pname = "labelbox"; version = "3.38.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "Labelbox"; repo = "labelbox-python"; rev = "refs/tags/v.${version}"; hash = "sha256-AyQPI19As49GML3kVXtHtRNOKthrpkQ7MCmww+F6owc="; };
postPatch = '' substituteInPlace pytest.ini \ --replace "--reruns 5 --reruns-delay 10" "" '';
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "backoff" ];
propagatedBuildInputs = [ backoff google-api-core ndjson pydantic requests tqdm ];
passthru.optional-dependencies = { data = [ shapely geojson numpy pillow # opencv-python typeguard imagesize pyproj # pygeotile typing-extensions packaging ]; };
nativeCheckInputs = [ nbconvert nbformat pytest-cases pytestCheckHook ] ++ passthru.optional-dependencies.data;
disabledTestPaths = [ # Requires network access "tests/integration" # Missing requirements "tests/data" ];
pytestFlagsArray = [ # see tox.ini "-k 'not notebooks'" ];
pythonImportsCheck = [ "labelbox" ];
meta = with lib; { description = "Platform API for LabelBox"; homepage = "https://github.com/Labelbox/labelbox-python"; changelog = "https://github.com/Labelbox/labelbox-python/blob/v.${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ rakesh4g ]; };}