Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 71 lines 1.4 kB view raw
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.4.3"; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "a8fa91669c97440049132119019e90d0a9cf09e96352cf43c7c6ca244894bd4e"; 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 }; 71}