2021-03-02 23:01:40 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, furl
|
|
|
|
, jsonschema
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pook";
|
2023-01-15 15:08:22 +00:00
|
|
|
version = "1.1.1";
|
2021-03-02 23:01:40 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "h2non";
|
|
|
|
repo = pname;
|
2023-01-11 20:52:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-15 15:08:22 +00:00
|
|
|
hash = "sha256-nLeJAAsJUKFAetZSAQmOtXP+3ZRHvCTFAzycSkK+kiI=";
|
2021-03-02 23:01:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
furl
|
|
|
|
jsonschema
|
|
|
|
requests
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-02 23:01:40 +00:00
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-01-11 20:52:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pook"
|
|
|
|
];
|
2021-03-02 23:01:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP traffic mocking and testing made simple in Python";
|
|
|
|
homepage = "https://github.com/h2non/pook";
|
2023-01-11 20:52:19 +00:00
|
|
|
changelog = "https://github.com/h2non/pook/blob/v${version}/History.rst";
|
2021-03-02 23:01:40 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|