forked from mirrors/nixpkgs
afe8ee8b47
The proper name for a python package is the one in the setuptools setup() call, which can also be seen on pypi. Correct: https://pypi.org/project/torch/ Wrong: https://pypi.org/project/pytorch/ Includes a treewide rename of the attribute and creates aliases for the old name.
47 lines
827 B
Nix
47 lines
827 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, pytestCheckHook
|
|
, future
|
|
, imageio
|
|
, numpy
|
|
, pandas
|
|
, torch
|
|
, tensorboard
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "test-tube";
|
|
version = "0.628";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "williamFalcon";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0w60xarmcw06gc4002sy7bjfykdz34gbgniswxkl0lw8a1v0xn2m";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
imageio
|
|
numpy
|
|
pandas
|
|
torch
|
|
tensorboard
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/williamFalcon/test-tube";
|
|
description = "Framework-agnostic library to track and parallelize hyperparameter search in machine learning experiments";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.tbenst ];
|
|
};
|
|
}
|