blob: 9fc3c7fe8143f2ce1463e76b869c56c7f5db0352 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, numpy
, oldest-supported-numpy
, scipy
, scikit-learn
, pytestCheckHook
, nix-update-script
, setuptools
, wheel
}:
let
self = buildPythonPackage rec {
pname = "opentsne";
version = "1.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pavlin-policar";
repo = "openTSNE";
rev = "v${version}";
hash = "sha256-L5Qx6dMJlXF3EaWwlFTQ3dkhGXc5PvQBXYJo+QO+Hxc=";
};
nativeBuildInputs = [
cython
oldest-supported-numpy
setuptools
wheel
];
propagatedBuildInputs = [ numpy scipy scikit-learn ];
pythonImportsCheck = [ "openTSNE" ];
doCheck = false;
passthru = {
updateScript = nix-update-script {};
tests.pytest = self.overridePythonAttrs (old: {
pname = "${old.pname}-tests";
format = "other";
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/${version}";
license = [ lib.licenses.bsd3 ];
maintainers = [ lib.maintainers.lucasew ];
};
};
in self
|