depot/third_party/nixpkgs/pkgs/development/python-modules/gradient/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

40 lines
1.3 KiB
Nix

{ 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.2";
src = fetchPypi {
inherit pname version;
sha256 = "2ed10db306d4c8632b7d04d71d44a04331a6e80e5ebab7296a98e67e8a50fb71";
};
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 ];
};
}