python311Packages.opentsne: refactor

This commit is contained in:
Fabian Affolter 2023-12-01 14:25:16 +01:00 committed by GitHub
parent 41f513ee73
commit 303a0a0bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
, scipy
, scikit-learn
, pytestCheckHook
, nix-update-script
, pythonOlder
, setuptools
, wheel
}:
@ -16,12 +16,14 @@ let
self = buildPythonPackage rec {
pname = "opentsne";
version = "1.0.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pavlin-policar";
repo = "openTSNE";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-UTfEjjNz1mm5fhyTw9GRlMNURwWlr6kLMjrMngkFV3Y=";
};
@ -32,13 +34,19 @@ let
wheel
];
propagatedBuildInputs = [ numpy scipy scikit-learn ];
propagatedBuildInputs = [
numpy
scipy
scikit-learn
];
pythonImportsCheck = [
"openTSNE"
];
pythonImportsCheck = [ "openTSNE" ];
doCheck = false;
passthru = {
updateScript = nix-update-script {};
tests.pytest = self.overridePythonAttrs (old: {
pname = "${old.pname}-tests";
format = "other";
@ -53,12 +61,12 @@ let
});
};
meta = {
meta = with lib; {
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 ];
changelog = "https://github.com/pavlin-policar/openTSNE/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ lucasew ];
};
};
in self