a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
50 lines
921 B
Nix
50 lines
921 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, furl
|
|
, jsonschema
|
|
, nose
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pook";
|
|
version = "1.1.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h2non";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nLeJAAsJUKFAetZSAQmOtXP+3ZRHvCTFAzycSkK+kiI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
furl
|
|
jsonschema
|
|
requests
|
|
xmltodict
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pook"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP traffic mocking and testing made simple in Python";
|
|
homepage = "https://github.com/h2non/pook";
|
|
changelog = "https://github.com/h2non/pook/blob/v${version}/History.rst";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|