mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
python311Packages.opentsne: refactor
This commit is contained in:
parent
41f513ee73
commit
303a0a0bc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user