at 23.05-pre 823 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.0.2"; 17 disabled = pythonOlder "3.5"; 18 19 src = fetchFromGitHub { 20 owner = "h2non"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "sha256-4OGcnuajGdBRlXCYwbTK/zLNQRrir60qCYajHRRCpkU="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 furl 29 jsonschema 30 requests 31 xmltodict 32 ]; 33 34 checkInputs = [ 35 nose 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "pook" ]; 40 41 meta = with lib; { 42 description = "HTTP traffic mocking and testing made simple in Python"; 43 homepage = "https://github.com/h2non/pook"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}