Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, numpy 6, scikitlearn 7, scipy 8, numba 9}: 10 11buildPythonPackage rec { 12 pname = "umap-learn"; 13 version = "0.3.10"; 14 15 src = fetchFromGitHub { 16 owner = "lmcinnes"; 17 repo = "umap"; 18 rev = version; 19 sha256 = "0nck5va5km7qkbrhn15dsn0p2mms9kc641lcypy7l8haqgm44h8x"; 20 }; 21 22 checkInputs = [ 23 nose 24 ]; 25 26 propagatedBuildInputs = [ 27 numpy 28 scikitlearn 29 scipy 30 numba 31 ]; 32 33 postConfigure = '' 34 substituteInPlace umap/tests/test_umap.py \ 35 --replace "def test_umap_transform_on_iris()" "@SkipTest 36def test_umap_transform_on_iris()" 37 ''; 38 39 checkPhase = '' 40 nosetests -s umap 41 ''; 42 43 meta = with lib; { 44 broken = true; 45 description = "Uniform Manifold Approximation and Projection"; 46 homepage = "https://github.com/lmcinnes/umap"; 47 license = licenses.bsd3; 48 maintainers = [ maintainers.costrouc ]; 49 }; 50}