Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.4 kB · 138 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139{ lib, buildPythonPackage, fetchFromGitHub, geojson, google-api-core, hatchling, imagesize, mypy, nbconvert, nbformat, numpy, opencv-python-headless, pillow, pydantic, pyproj, pytest-cov-stub, pytest-order, pytest-rerunfailures, pytest-xdist, pytestCheckHook, python-dateutil, requests, shapely, strenum, tqdm, typeguard, typing-extensions,}:
let version = "7.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "Labelbox"; repo = "labelbox-python"; tag = "v${version}"; hash = "sha256-2of/yiw+wBHc0BFLKFdWV4Xm1Dcs4SsT8DkpmruaLT0="; };
lbox-clients = buildPythonPackage { inherit src version pyproject;
pname = "lbox-clients";
sourceRoot = "${src.name}/libs/lbox-clients";
build-system = [ hatchling ];
dependencies = [ google-api-core requests ];
nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ];
doCheck = true;
__darwinAllowLocalNetworking = true; };inbuildPythonPackage rec { inherit src version pyproject;
pname = "labelbox";
sourceRoot = "${src.name}/libs/labelbox";
pythonRelaxDeps = [ "mypy" "python-dateutil" ];
build-system = [ hatchling ];
dependencies = [ google-api-core lbox-clients pydantic python-dateutil requests strenum tqdm geojson mypy ];
optional-dependencies = { data = [ shapely numpy pillow opencv-python-headless typeguard imagesize pyproj # pygeotile typing-extensions ]; };
nativeCheckInputs = [ nbconvert nbformat pytest-cov-stub pytest-order pytest-rerunfailures pytest-xdist pytestCheckHook ] ++ optional-dependencies.data;
disabledTestPaths = [ # Requires network access "tests/integration" # Missing requirements "tests/data" "tests/unit/test_label_data_type.py" ];
doCheck = true;
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "labelbox" ];
meta = { description = "Platform API for LabelBox"; homepage = "https://github.com/Labelbox/labelbox-python"; changelog = "https://github.com/Labelbox/labelbox-python/releases/tag/v.${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ rakesh4g ]; };}