python3Packages.gradient-utils: renamed from gradient_sdk
This commit is contained in:
34
pkgs/development/python-modules/gradient-utils/default.nix
Normal file
34
pkgs/development/python-modules/gradient-utils/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, hyperopt
|
||||
, lib
|
||||
, numpy
|
||||
, prometheus_client
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gradient-utils";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0a99yygv30vibfawk6zd1jd6lva8fjnr99l1ahaf0nqjyw6jl4nw";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/hyperopt==0.1.2/hyperopt>=0.1.2/' setup.py
|
||||
sed -i 's/numpy==1.18.5/numpy>=1.18.5/' setup.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ hyperopt prometheus_client numpy ];
|
||||
|
||||
pythonImportsCheck = [ "gradient_utils" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gradient ML SDK";
|
||||
homepage = "https://github.com/Paperspace/gradient-utils";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user