fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
furl,
|
|
hatchling,
|
|
jsonschema,
|
|
pytest-asyncio,
|
|
pytest-httpbin,
|
|
pytest7CheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
xmltodict,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pook";
|
|
version = "1.4.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "h2non";
|
|
repo = "pook";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sdfkMvPSlVK7EoDUEuJbiuocOjGJygqiCiftrsjnDhU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
furl
|
|
jsonschema
|
|
requests
|
|
xmltodict
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-httpbin
|
|
pytest7CheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pook" ];
|
|
|
|
disabledTestPaths = [
|
|
# Don't test integrations
|
|
"tests/integration/"
|
|
# Tests require network access
|
|
"tests/unit/interceptors/"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP traffic mocking and testing";
|
|
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 ];
|
|
};
|
|
}
|