1{ lib
2, python3
3, fetchPypi
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "cloudsmith-cli";
8 version = "1.2.3";
9 format = "wheel";
10
11 src = fetchPypi {
12 pname = "cloudsmith_cli";
13 inherit format version;
14 hash = "sha256-MIoRLWk6G8uchQlGOYOsg3XliZ1wMrYSOhAEQrus+fQ=";
15 };
16
17 propagatedBuildInputs = with python3.pkgs; [
18 click
19 click-configfile
20 click-didyoumean
21 click-spinner
22 cloudsmith-api
23 colorama
24 future
25 requests
26 requests-toolbelt
27 semver
28 simplejson
29 six
30 setuptools # needs pkg_resources
31 ];
32
33 # Wheels have no tests
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "cloudsmith_cli"
38 ];
39
40 meta = with lib; {
41 homepage = "https://help.cloudsmith.io/docs/cli/";
42 description = "Cloudsmith Command Line Interface";
43 mainProgram = "cloudsmith";
44 changelog = "https://github.com/cloudsmith-io/cloudsmith-cli/blob/v${version}/CHANGELOG.md";
45 maintainers = with maintainers; [ ];
46 license = licenses.asl20;
47 platforms = with platforms; unix;
48 };
49}