Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpy-cli: init at 1.1.0 #291422

Merged
merged 1 commit into from Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 53 additions & 0 deletions pkgs/by-name/ht/httpy-cli/package.nix
@@ -0,0 +1,53 @@
{ lib
, python3Packages
, fetchPypi
, curl
}:

python3Packages.buildPythonPackage rec {
pname = "httpy-cli";
version = "1.1.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "httpy-cli";
hash = "sha256-uhF/jF4buHMDiXOuuqjskynioz4qVBevQhdcUbH+91Q=";
};

propagatedBuildInputs = with python3Packages; [
colorama
pygments
requests
urllib3
];

hatch01 marked this conversation as resolved.
Show resolved Hide resolved
build-system = with python3Packages; [
setuptools
];

pythonImportsCheck = [
"httpy"
];

nativeCheckInputs = [
python3Packages.pytest
curl
];

checkPhase = ''
runHook preCheck
echo "line1\nline2\nline3" > tests/test_file.txt
# ignore the test_args according to pytest.ini in the repo
pytest tests/ --ignore=tests/test_args.py
runHook postCheck
'';

meta = with lib; {
hatch01 marked this conversation as resolved.
Show resolved Hide resolved
description = "Modern, user-friendly, programmable command-line HTTP client for the API";
homepage = "https://github.com/knid/httpy";
license = licenses.mit;
mainProgram = "httpy";
maintainers = with maintainers; [ eymeric ];
hatch01 marked this conversation as resolved.
Show resolved Hide resolved
};
}