nixpkgs/pkgs/development/python-modules/hyperopt/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
926 B
Nix

{
lib,
buildPythonPackage,
cloudpickle,
fetchPypi,
future,
networkx,
numpy,
py4j,
pymongo,
pyspark,
scipy,
six,
tqdm,
}:
buildPythonPackage rec {
pname = "hyperopt";
version = "0.2.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1bf89ae58050bbd32c7307199046117feee245c2fd9ab6255c7308522b7ca149";
};
propagatedBuildInputs = [
cloudpickle
future
networkx
numpy
py4j
pymongo
pyspark
scipy
six
tqdm
];
# tries to use /homeless-shelter to mimic container usage, etc
doCheck = false;
pythonImportsCheck = [ "hyperopt" ];
meta = {
description = "Distributed Asynchronous Hyperparameter Optimization";
mainProgram = "hyperopt-mongo-worker";
homepage = "http://hyperopt.github.io/hyperopt/";
license = lib.licenses.bsd2;
platforms = lib.platforms.unix;
maintainers = [ ];
};
}