593e11fd94
According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
50 lines
878 B
Nix
50 lines
878 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, nose
|
|
, numpy
|
|
, scikitlearn
|
|
, scipy
|
|
, numba
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "umap-learn";
|
|
version = "0.3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lmcinnes";
|
|
repo = "umap";
|
|
rev = version;
|
|
sha256 = "0nck5va5km7qkbrhn15dsn0p2mms9kc641lcypy7l8haqgm44h8x";
|
|
};
|
|
|
|
checkInputs = [
|
|
nose
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scikitlearn
|
|
scipy
|
|
numba
|
|
];
|
|
|
|
postConfigure = ''
|
|
substituteInPlace umap/tests/test_umap.py \
|
|
--replace "def test_umap_transform_on_iris()" "@SkipTest
|
|
def test_umap_transform_on_iris()"
|
|
'';
|
|
|
|
checkPhase = ''
|
|
nosetests -s umap
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Uniform Manifold Approximation and Projection";
|
|
homepage = https://github.com/lmcinnes/umap;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|