depot/third_party/nixpkgs/pkgs/development/python-modules/pook/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

64 lines
1.1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, furl
, hatchling
, jsonschema
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pook";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "h2non";
repo = "pook";
rev = "refs/tags/v${version}";
hash = "sha256-0sS2QJcshMuxxCGlrcVHeIQnVMZbBoJfLsRIxpvl7pM=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
aiohttp
furl
jsonschema
requests
xmltodict
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
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 ];
};
}