nixpkgs/pkgs/development/tools/cloudsmith-cli/default.nix
2024-04-07 16:07:44 +00:00

50 lines
1.0 KiB
Nix

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "cloudsmith-cli";
version = "1.2.2";
format = "wheel";
src = fetchPypi {
pname = "cloudsmith_cli";
inherit format version;
hash = "sha256-gXbjmnMBx5FuJfWD+jW1KOpNEYit6oqhympN8qwqYlU=";
};
propagatedBuildInputs = with python3.pkgs; [
click
click-configfile
click-didyoumean
click-spinner
cloudsmith-api
colorama
future
requests
requests-toolbelt
semver
simplejson
six
setuptools # needs pkg_resources
];
# Wheels have no tests
doCheck = false;
pythonImportsCheck = [
"cloudsmith_cli"
];
meta = with lib; {
homepage = "https://help.cloudsmith.io/docs/cli/";
description = "Cloudsmith Command Line Interface";
mainProgram = "cloudsmith";
changelog = "https://github.com/cloudsmith-io/cloudsmith-cli/blob/v${version}/CHANGELOG.md";
maintainers = with maintainers; [ ];
license = licenses.asl20;
platforms = with platforms; unix;
};
}