uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, numpy
|
||||
, scikit-learn
|
||||
, pytestCheckHook
|
||||
, pytorch
|
||||
, torchvision
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytorch-metric-learning";
|
||||
version = "1.2.0";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KevinMusgrave";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-M/iH+pIuamOmvxLtKMzWXiuMCnMXzpVFRb/HfYfCKdc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
pytorch
|
||||
scikit-learn
|
||||
torchvision
|
||||
tqdm
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMP
|
||||
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 ];
|
||||
disabledTests = [
|
||||
# requires FAISS (not in Nixpkgs)
|
||||
"test_accuracy_calculator_and_faiss"
|
||||
"test_global_embedding_space_tester"
|
||||
"test_with_same_parent_label_tester"
|
||||
# require network access:
|
||||
"test_get_nearest_neighbors"
|
||||
"test_tuplestoweights_sampler"
|
||||
"test_untrained_indexer"
|
||||
"test_metric_loss_only"
|
||||
"test_pca"
|
||||
# flaky
|
||||
"test_distributed_classifier_loss_and_miner"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Metric learning library for PyTorch";
|
||||
homepage = "https://github.com/KevinMusgrave/pytorch-metric-learning";
|
||||
changelog = "https://github.com/KevinMusgrave/pytorch-metric-learning/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
broken = true; # requires faiss which is unpackaged
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue