anchor.diff:      export TEST_DEVICE=cpu
       export TEST_DTYPES=float32,float64  # half-precision tests fail on CPU
     '';
  +
     # package only requires `unittest`, but use `pytest` to exclude tests
  -  checkInputs = [ pytestCheckHook ];
  +  checkInputs = [
  +    faiss
  +    pytestCheckHook
  +  ];
  +
     disabledTests = [
  -    # requires FAISS (not in Nixpkgs)
  -    "test_accuracy_calculator_and_faiss"
  -    "test_global_embedding_space_tester"
  -    "test_with_same_parent_label_tester"
  +    # TypeError: setup() missing 1 required positional argument: 'world_size'
  +    "TestDistributedLossWrapper"
       # require network access:
  +    "TestInference"
       "test_get_nearest_neighbors"
       "test_tuplestoweights_sampler"
       "test_untrained_indexer"
  
positive.code: , pytorch
  , torchvision
  , tqdm
  }:
  
  buildPythonPackage rec {
    pname   = "pytorch-metric-learning";
    version = "1.5.0";
  
    disabled = isPy27;
  
  
negative.code:     changelog = "https://github.com/KevinMusgrave/pytorch-metric-learning/releases/tag/v${version}";
      license = lib.licenses.mit;
      maintainers = with lib.maintainers; [ bcdarwin ];
    };
  }
  