diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-29 11:42:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 11:42:18 +0100 |
commit | 770d70310e094381ea93a21ec081b329a8b915c8 (patch) | |
tree | e9850d87dc89814561d9d9ae6595427623f103ad /pkgs/by-name/ht | |
parent | 854e4a6b83013d206591ea00ab046aa415ef3833 (diff) | |
parent | 2ef96f0ba025d72c0f3093c2c5cdf147d9b94581 (diff) |
Merge pull request #291422 from hatch01/httpy-cli
httpy-cli: init at 1.1.0
Diffstat (limited to 'pkgs/by-name/ht')
-rw-r--r-- | pkgs/by-name/ht/httpy-cli/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/ht/httpy-cli/package.nix b/pkgs/by-name/ht/httpy-cli/package.nix new file mode 100644 index 0000000000000..2b59b54ef2136 --- /dev/null +++ b/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 + ]; + + 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; { + 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 ]; + }; +} |