nixpkgs/pkgs/development/tools/cloudsmith-cli/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

50 lines
1 KiB
Nix

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