blob: 35829044c3cf11b76a59068f8c9bd9377300bb42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, furl
, jsonschema
, nose
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.0.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "h2non";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4OGcnuajGdBRlXCYwbTK/zLNQRrir60qCYajHRRCpkU=";
};
propagatedBuildInputs = [
aiohttp
furl
jsonschema
requests
xmltodict
];
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [ "pook" ];
meta = with lib; {
description = "HTTP traffic mocking and testing made simple in Python";
homepage = "https://github.com/h2non/pook";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|