diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-02-01 08:42:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 08:42:54 +0100 |
commit | 7b7556a41fd4e6c9f82aaf6a72d6f4f3fde816f2 (patch) | |
tree | b247a511b4be5a6866e02514c2fb98c2b96d925f /pkgs/development/python-modules/gradient/default.nix | |
parent | 4a1c41f1240258d936366a5d17dd7c849b4de438 (diff) | |
parent | 07c21216df43691bcfd4f966055650a1b74bfc74 (diff) |
Merge pull request #110565 from urbas/gradient-sdk-renamed
Diffstat (limited to 'pkgs/development/python-modules/gradient/default.nix')
-rw-r--r-- | pkgs/development/python-modules/gradient/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gradient/default.nix b/pkgs/development/python-modules/gradient/default.nix new file mode 100644 index 000000000000..14df3b882bba --- /dev/null +++ b/pkgs/development/python-modules/gradient/default.nix @@ -0,0 +1,40 @@ +{ lib, fetchPypi, buildPythonPackage +, attrs, boto3, requests, gradient_statsd, terminaltables +, click-completion , click-didyoumean, click-help-colors +, colorama, requests_toolbelt, gradient-utils, halo, progressbar2 +, marshmallow, pyyaml, websocket_client +}: + +buildPythonPackage rec { + pname = "gradient"; + version = "1.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "15s21945hg342195ig7nchap5mdnsw931iis92pr7hy8ff0rks3n"; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace 'attrs<=' 'attrs>=' \ + --replace 'colorama==' 'colorama>=' \ + --replace 'PyYAML==' 'PyYAML>=' \ + --replace 'marshmallow<' 'marshmallow>=' + ''; + + propagatedBuildInputs = [ attrs boto3 requests gradient_statsd terminaltables + click-completion click-didyoumean click-help-colors requests_toolbelt + colorama gradient-utils halo marshmallow progressbar2 pyyaml websocket_client + ]; + + # tries to use /homeless-shelter to mimic container usage, etc + doCheck = false; + + meta = with lib; { + description = "The command line interface for Gradient"; + homepage = "https://github.com/Paperspace/gradient-cli"; + license = licenses.isc; + platforms = platforms.unix; + maintainers = with maintainers; [ thoughtpolice ]; + }; +} |