1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/umap-learn/default.nix

52 lines
1,001 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, numpy
, scikitlearn
, scipy
, numba
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "umap-learn";
version = "0.4.5";
src = fetchFromGitHub {
owner = "lmcinnes";
repo = "umap";
rev = version;
sha256 = "080by8h4rxr5ijx8vp8kn952chiqz029j26c04k4js4g9s7201bq";
};
checkInputs = [
nose
pytestCheckHook
];
propagatedBuildInputs = [
numpy
scikitlearn
scipy
numba
];
disabledTests = [
# Plot functionality requires additional packages.
# These test also fail with 'RuntimeError: cannot cache function' error.
"test_umap_plot_testability"
"test_plot_runs_at_all"
# Flaky test. Fails with AssertionError sometimes.
"test_sparse_hellinger"
];
meta = with lib; {
description = "Uniform Manifold Approximation and Projection";
homepage = "https://github.com/lmcinnes/umap";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}