From 5f5ab8004e58a6deea34c3466cc8a383d47751ed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Apr 2021 12:29:10 +0200 Subject: [PATCH] python3Packages.gradient: fix build --- .../python-modules/gradient/default.nix | 54 ++++++++++++++----- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/gradient/default.nix b/pkgs/development/python-modules/gradient/default.nix index c74501c621e..1965e0d3ade 100644 --- a/pkgs/development/python-modules/gradient/default.nix +++ b/pkgs/development/python-modules/gradient/default.nix @@ -1,8 +1,23 @@ -{ 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 +{ lib +, attrs +, boto3 +, buildPythonPackage +, click-completion +, click-didyoumean +, click-help-colors +, colorama +, fetchPypi +, gradient_statsd +, gradient-utils +, halo +, marshmallow +, progressbar2 +, pyopenssl +, pyyaml +, requests +, requests_toolbelt +, terminaltables +, websocket_client }: buildPythonPackage rec { @@ -21,11 +36,26 @@ buildPythonPackage rec { --replace 'PyYAML==' 'PyYAML>=' \ --replace 'marshmallow<' 'marshmallow>=' \ --replace 'websocket-client==' 'websocket-client>=' - ''; + ''; - 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 + propagatedBuildInputs = [ + attrs + boto3 + click-completion + click-didyoumean + click-help-colors + colorama + gradient_statsd + gradient-utils + halo + marshmallow + progressbar2 + pyopenssl + pyyaml + requests + requests_toolbelt + terminaltables + websocket_client ]; # tries to use /homeless-shelter to mimic container usage, etc @@ -33,9 +63,9 @@ buildPythonPackage rec { meta = with lib; { description = "The command line interface for Gradient"; - homepage = "https://github.com/Paperspace/gradient-cli"; - license = licenses.isc; - platforms = platforms.unix; + homepage = "https://github.com/Paperspace/gradient-cli"; + license = licenses.isc; + platforms = platforms.unix; maintainers = with maintainers; [ thoughtpolice ]; }; }