25 buildPythonPackage rec {
28 format = "setuptools";
31 inherit pname version;
32 hash = "sha256-pqyyNzx2YPP3qmWQbzGd3q2HzCkrWlIVSJZeFrGm9dk=";
36 substituteInPlace setup.py \
37 --replace 'attrs<=' 'attrs>=' \
38 --replace 'colorama==' 'colorama>=' \
39 --replace 'gql[requests]==3.0.0a6' 'gql' \
40 --replace 'PyYAML==5.*' 'PyYAML' \
41 --replace 'marshmallow<' 'marshmallow>=' \
42 --replace 'websocket-client==0.57.*' 'websocket-client'
45 propagatedBuildInputs = [
66 # Tries to use /homeless-shelter to mimic container usage, etc
69 # marshmallow.exceptions.StringNotCollectionError: "only" should be a collection of strings.
70 # Support for marshmallow > 3
71 # pythonImportsCheck = [
76 description = "Command line interface for Gradient";
77 mainProgram = "gradient";
78 homepage = "https://github.com/Paperspace/gradient-cli";
79 license = licenses.isc;
80 platforms = platforms.unix;
81 maintainers = with maintainers; [ thoughtpolice ];