chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ht / httpy-cli / package.nix
blob2b59b54ef2136134b5d7068aff3c03a884767f2c
1 { lib
2 , python3Packages
3 , fetchPypi
4 , curl
5  }:
7 python3Packages.buildPythonPackage rec {
8   pname = "httpy-cli";
9   version = "1.1.0";
10   pyproject = true;
12   src = fetchPypi {
13     inherit version;
14     pname = "httpy-cli";
15     hash = "sha256-uhF/jF4buHMDiXOuuqjskynioz4qVBevQhdcUbH+91Q=";
16   };
18   propagatedBuildInputs = with python3Packages; [
19     colorama
20     pygments
21     requests
22     urllib3
23   ];
25   build-system = with python3Packages; [
26       setuptools
27   ];
29   pythonImportsCheck = [
30     "httpy"
31   ];
33   nativeCheckInputs = [
34       python3Packages.pytest
35       curl
36     ];
38   checkPhase = ''
39     runHook preCheck
40     echo "line1\nline2\nline3" > tests/test_file.txt
41     # ignore the test_args according to pytest.ini in the repo
42     pytest tests/ --ignore=tests/test_args.py
43     runHook postCheck
44   '';
46   meta = with lib; {
47     description = "Modern, user-friendly, programmable command-line HTTP client for the API";
48     homepage = "https://github.com/knid/httpy";
49     license = licenses.mit;
50     mainProgram = "httpy";
51     maintainers = with maintainers; [ eymeric ];
52   };