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
55
pkgs/development/python-modules/hdbscan/default.nix
Normal file
55
pkgs/development/python-modules/hdbscan/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, cython
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, scipy
|
||||
, scikit-learn
|
||||
, fetchPypi
|
||||
, joblib
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hdbscan";
|
||||
version = "0.8.27";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e3a418d0d36874f7b6a1bf0b7461f3857fc13a525fd48ba34caed2fe8973aa26";
|
||||
};
|
||||
patches = [
|
||||
# This patch fixes compatibility with numpy 1.20. It will be in the next release
|
||||
# after 0.8.27
|
||||
(fetchpatch {
|
||||
url = "https://github.com/scikit-learn-contrib/hdbscan/commit/5b67a4fba39c5aebe8187a6a418da677f89a63e0.patch";
|
||||
sha256 = "07d7jdwk0b8kgaqkifd529sarji01j1jiih7cfccc5kxmlb5py9h";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
propagatedBuildInputs = [ numpy scipy scikit-learn joblib six ];
|
||||
preCheck = ''
|
||||
cd hdbscan/tests
|
||||
rm __init__.py
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
disabledTests = [
|
||||
# known flaky tests: https://github.com/scikit-learn-contrib/hdbscan/issues/420
|
||||
"test_mem_vec_diff_clusters"
|
||||
"test_all_points_mem_vec_diff_clusters"
|
||||
"test_approx_predict_diff_clusters"
|
||||
# another flaky test https://github.com/scikit-learn-contrib/hdbscan/issues/421
|
||||
"test_hdbscan_boruvka_balltree_matches"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "hdbscan" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Hierarchical Density-Based Spatial Clustering of Applications with Noise, a clustering algorithm with a scikit-learn compatible API";
|
||||
homepage = "https://github.com/scikit-learn-contrib/hdbscan";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ixxie ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue