at 23.11-beta 921 B view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, furl 6, jsonschema 7, nose 8, pytestCheckHook 9, pythonOlder 10, requests 11, xmltodict 12}: 13 14buildPythonPackage rec { 15 pname = "pook"; 16 version = "1.1.1"; 17 disabled = pythonOlder "3.5"; 18 19 src = fetchFromGitHub { 20 owner = "h2non"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-nLeJAAsJUKFAetZSAQmOtXP+3ZRHvCTFAzycSkK+kiI="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 furl 29 jsonschema 30 requests 31 xmltodict 32 ]; 33 34 nativeCheckInputs = [ 35 nose 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "pook" 41 ]; 42 43 meta = with lib; { 44 description = "HTTP traffic mocking and testing made simple in Python"; 45 homepage = "https://github.com/h2non/pook"; 46 changelog = "https://github.com/h2non/pook/blob/v${version}/History.rst"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}