python3Packages.opentsne: init at 1.0.0
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
0e3349d548
commit
67effe018b
56
pkgs/development/python-modules/opentsne/default.nix
Normal file
56
pkgs/development/python-modules/opentsne/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, numpy
|
||||
, scipy
|
||||
, scikit-learn
|
||||
, pytestCheckHook
|
||||
, nix-update-script
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
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=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy scikit-learn ];
|
||||
nativeBuildInputs = [ cython setuptools ];
|
||||
|
||||
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
|
|
@ -7544,6 +7544,8 @@ self: super: with self; {
|
|||
|
||||
opentracing = callPackage ../development/python-modules/opentracing { };
|
||||
|
||||
opentsne = callPackage ../development/python-modules/opentsne { };
|
||||
|
||||
openvino = callPackage ../development/python-modules/openvino {
|
||||
openvino-native = pkgs.openvino.override {
|
||||
inherit python;
|
||||
|
|
Loading…
Reference in a new issue