2021-09-23 15:35:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "faraday-cli";
|
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "infobyte";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-J3YlFsX/maOqWo4ILEMXzIJeQ8vr47ApGGiaBWrUCMs=";
|
2021-09-23 15:35:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-02-10 20:34:41 +00:00
|
|
|
arrow
|
2021-09-23 15:35:13 +00:00
|
|
|
click
|
2022-02-10 20:34:41 +00:00
|
|
|
cmd2
|
2021-09-23 15:35:13 +00:00
|
|
|
colorama
|
|
|
|
faraday-plugins
|
|
|
|
jsonschema
|
2022-02-10 20:34:41 +00:00
|
|
|
log-symbols
|
|
|
|
packaging
|
2021-09-23 15:35:13 +00:00
|
|
|
pyyaml
|
|
|
|
simple-rest-client
|
|
|
|
spinners
|
2022-02-10 20:34:41 +00:00
|
|
|
tabulate
|
2021-09-23 15:35:13 +00:00
|
|
|
termcolor
|
2022-02-10 20:34:41 +00:00
|
|
|
validators
|
2021-09-23 15:35:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests requires credentials
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"faraday_cli"
|
|
|
|
];
|
2021-09-23 15:35:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command Line Interface for Faraday";
|
|
|
|
homepage = "https://github.com/infobyte/faraday-cli";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|