python3Packages.gradient: 1.8.13 -> 1.9.1

This commit is contained in:
Fabian Affolter 2022-01-07 14:12:15 +01:00
parent 947a771b04
commit 03ca874315

View File

@ -9,6 +9,7 @@
, fetchPypi
, gradient_statsd
, gradient-utils
, gql
, halo
, marshmallow
, progressbar2
@ -22,17 +23,19 @@
buildPythonPackage rec {
pname = "gradient";
version = "1.8.13";
version = "1.9.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0fa4a0553c28839e364d3aac27ec7292d26c1df27b8c54701d57eb7eda0b14f2";
hash = "sha256-zimOh4bc9EQGpqMky/etwnAF04onJ2m/KAl29IaAeAY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'attrs<=' 'attrs>=' \
--replace 'colorama==' 'colorama>=' \
--replace 'gql[requests]==3.0.0a6' 'gql' \
--replace 'PyYAML==' 'PyYAML>=' \
--replace 'marshmallow<' 'marshmallow>=' \
--replace 'websocket-client==' 'websocket-client>='
@ -45,6 +48,7 @@ buildPythonPackage rec {
click-didyoumean
click-help-colors
colorama
gql
gradient_statsd
gradient-utils
halo
@ -58,17 +62,20 @@ buildPythonPackage rec {
websocket-client
];
# tries to use /homeless-shelter to mimic container usage, etc
# Tries to use /homeless-shelter to mimic container usage, etc
doCheck = false;
# marshmallow.exceptions.StringNotCollectionError: "only" should be a collection of strings.
# Support for marshmallow > 3
# pythonImportsCheck = [
# "gradient"
# ];
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 ];
# There is no support for click > 8
# https://github.com/Paperspace/gradient-cli/issues/368
broken = true;
};
}