nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpbin, 6 pytest, 7 pytestCheckHook, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-httpbin"; 14 version = "2.1.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "kevin1024"; 19 repo = "pytest-httpbin"; 20 tag = "v${version}"; 21 hash = "sha256-gESU1SDpqSQs8GRcGJclWM0WpS4DZicfdtwxk2sQubQ="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 buildInputs = [ pytest ]; 27 28 propagatedBuildInputs = [ httpbin ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 requests 33 ]; 34 35 disabledTests = [ 36 # incompatible with flask 2.3 37 "test_redirect_location_is_https_for_secure_server" 38 # Timeout on Hydra 39 "test_dont_crash_on_handshake_timeout" 40 ]; 41 42 __darwinAllowLocalNetworking = true; 43 44 pythonImportsCheck = [ "pytest_httpbin" ]; 45 46 meta = { 47 description = "Test your HTTP library against a local copy of httpbin.org"; 48 homepage = "https://github.com/kevin1024/pytest-httpbin"; 49 changelog = "https://github.com/kevin1024/pytest-httpbin/releases/tag/v${version}"; 50 license = lib.licenses.mit; 51 maintainers = [ ]; 52 }; 53}