Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5 curl, 6}: 7 8python3Packages.buildPythonPackage rec { 9 pname = "httpy-cli"; 10 version = "1.1.0"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit version; 15 pname = "httpy-cli"; 16 hash = "sha256-uhF/jF4buHMDiXOuuqjskynioz4qVBevQhdcUbH+91Q="; 17 }; 18 19 propagatedBuildInputs = with python3Packages; [ 20 colorama 21 pygments 22 requests 23 urllib3 24 ]; 25 26 build-system = with python3Packages; [ 27 setuptools 28 ]; 29 30 pythonImportsCheck = [ 31 "httpy" 32 ]; 33 34 nativeCheckInputs = [ 35 python3Packages.pytest 36 curl 37 ]; 38 39 checkPhase = '' 40 runHook preCheck 41 echo "line1\nline2\nline3" > tests/test_file.txt 42 # ignore the test_args according to pytest.ini in the repo 43 pytest tests/ --ignore=tests/test_args.py 44 runHook postCheck 45 ''; 46 47 meta = with lib; { 48 description = "Modern, user-friendly, programmable command-line HTTP client for the API"; 49 homepage = "https://github.com/knid/httpy"; 50 license = licenses.mit; 51 mainProgram = "httpy"; 52 maintainers = with maintainers; [ eymeric ]; 53 }; 54}