1{ lib 2, attrs 3, boto3 4, buildPythonPackage 5, click-completion 6, click-didyoumean 7, click-help-colors 8, colorama 9, fetchPypi 10, gradient_statsd 11, gradient-utils 12, halo 13, marshmallow 14, progressbar2 15, pyopenssl 16, pyyaml 17, requests 18, requests-toolbelt 19, terminaltables 20, websocket-client 21}: 22 23buildPythonPackage rec { 24 pname = "gradient"; 25 version = "1.8.9"; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "c05913efe7fcc9f75c1fe84c157d2c2cf3ec0983e132d418c6e59fabc6361a1e"; 30 }; 31 32 postPatch = '' 33 substituteInPlace setup.py \ 34 --replace 'attrs<=' 'attrs>=' \ 35 --replace 'colorama==' 'colorama>=' \ 36 --replace 'PyYAML==' 'PyYAML>=' \ 37 --replace 'marshmallow<' 'marshmallow>=' \ 38 --replace 'websocket-client==' 'websocket-client>=' 39 ''; 40 41 propagatedBuildInputs = [ 42 attrs 43 boto3 44 click-completion 45 click-didyoumean 46 click-help-colors 47 colorama 48 gradient_statsd 49 gradient-utils 50 halo 51 marshmallow 52 progressbar2 53 pyopenssl 54 pyyaml 55 requests 56 requests-toolbelt 57 terminaltables 58 websocket-client 59 ]; 60 61 # tries to use /homeless-shelter to mimic container usage, etc 62 doCheck = false; 63 64 meta = with lib; { 65 description = "The command line interface for Gradient"; 66 homepage = "https://github.com/Paperspace/gradient-cli"; 67 license = licenses.isc; 68 platforms = platforms.unix; 69 maintainers = with maintainers; [ thoughtpolice ]; 70 # There is no support for click > 8 71 # https://github.com/Paperspace/gradient-cli/issues/368 72 broken = true; 73 }; 74}