nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 75 lines 1.5 kB view raw
1{ lib 2, brotlipy 3, buildPythonPackage 4, decorator 5, fetchpatch 6, fetchPypi 7, flask 8, flask-limiter 9, itsdangerous 10, markupsafe 11, raven 12, six 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "httpbin"; 18 version = "0.7.0"; 19 format = "setuptools"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo="; 24 }; 25 26 patches = [ 27 (fetchpatch { 28 # Replaces BaseResponse class with Response class for Werkezug 2.1.0 compatibility 29 # https://github.com/postmanlabs/httpbin/pull/674 30 url = "https://github.com/postmanlabs/httpbin/commit/5cc81ce87a3c447a127e4a1a707faf9f3b1c9b6b.patch"; 31 hash = "sha256-SbEWjiqayMFYrbgAPZtSsXqSyCDUz3z127XgcKOcrkE="; 32 }) 33 ]; 34 35 propagatedBuildInputs = [ 36 brotlipy 37 flask 38 flask-limiter 39 markupsafe 40 decorator 41 itsdangerous 42 raven 43 six 44 ]; 45 46 checkInputs = [ 47 pytestCheckHook 48 ]; 49 50 pytestFlagsArray = [ 51 "test_httpbin.py" 52 ]; 53 54 disabledTests = [ 55 # Tests seems to be outdated 56 "test_anything" 57 "test_get" 58 "test_redirect_n_equals_to_1" 59 "test_redirect_n_higher_than_1" 60 "test_redirect_to_post" 61 "test_relative_redirect_n_equals_to_1" 62 "test_relative_redirect_n_higher_than_1" 63 ]; 64 65 pythonImportsCheck = [ 66 "httpbin" 67 ]; 68 69 meta = with lib; { 70 description = "HTTP Request and Response Service"; 71 homepage = "https://github.com/kennethreitz/httpbin"; 72 license = licenses.mit; 73 maintainers = with maintainers; [ ]; 74 }; 75}