blob: 8c2f13122c905008b247a8f35401c5f309679576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
numpy,
scipy,
scikit-learn,
pytestCheckHook,
setuptools,
}:
let
self = buildPythonPackage rec {
pname = "opentsne";
version = "1.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "pavlin-policar";
repo = "openTSNE";
tag = "v${version}";
hash = "sha256-cGnhdGpDiBlTeeveCtnveslDytpNO8vtYkxQQ7FhsuA=";
};
build-system = [
cython
numpy
setuptools
];
dependencies = [
numpy
scipy
scikit-learn
];
pythonImportsCheck = [ "openTSNE" ];
doCheck = false;
passthru = {
tests.pytest = self.overridePythonAttrs (old: {
pname = "${old.pname}-tests";
pyproject = false;
postPatch = "rm openTSNE -rf";
doBuild = false;
doInstall = false;
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
self
];
});
};
meta = {
description = "Modular Python implementation of t-Distributed Stochasitc Neighbor Embedding";
homepage = "https://github.com/pavlin-policar/openTSNE";
changelog = "https://github.com/pavlin-policar/openTSNE/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ lucasew ];
};
};
in
self
|