nixpkgs/pkgs/development/tools/cloudsmith-cli/default.nix
2024-04-18 12:48:47 +00:00

50 lines
1.0 KiB
Nix

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "cloudsmith-cli";
version = "1.2.3";
format = "wheel";
src = fetchPypi {
pname = "cloudsmith_cli";
inherit format version;
hash = "sha256-MIoRLWk6G8uchQlGOYOsg3XliZ1wMrYSOhAEQrus+fQ=";
};
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;
};
}