2021-09-23 15:35:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "faraday-cli";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.1.11";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-09-23 15:35:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "infobyte";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "faraday-cli";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-bCiiX5dYodnWkKeNo2j3PGMz17F5y2X4ECZiStDdK5U=";
|
2021-09-23 15:35:13 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
2022-06-16 17:23:12 +00:00
|
|
|
luddite
|
2022-02-10 20:34:41 +00:00
|
|
|
packaging
|
2021-09-23 15:35:13 +00:00
|
|
|
pyyaml
|
2022-06-16 17:23:12 +00:00
|
|
|
py-sneakers
|
2021-09-23 15:35:13 +00:00
|
|
|
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";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/infobyte/faraday-cli/releases/tag/${version}";
|
2021-09-23 15:35:13 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|