2021-03-02 23:01:40 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, furl
|
|
|
|
, jsonschema
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pook";
|
2021-09-17 09:40:34 +01:00
|
|
|
version = "1.0.2";
|
2021-03-02 23:01:40 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "h2non";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-17 09:40:34 +01:00
|
|
|
sha256 = "sha256-4OGcnuajGdBRlXCYwbTK/zLNQRrir60qCYajHRRCpkU=";
|
2021-03-02 23:01:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|