depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-aiohttp/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

56 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, aiohttp
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-aiohttp";
version = "1.0.4";
format = "setuptools";
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit pname version;
sha256 = "39ff3a0d15484c01d1436cbedad575c6eafbf0f57cdf76fb94994c97b5b8c5a4";
};
nativeBuildInputs = [
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
buildInputs = [
pytest
];
propagatedBuildInputs = [
aiohttp
pytest-asyncio
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# pytest 7.2.0 incompatibilities
# https://github.com/aio-libs/pytest-aiohttp/issues/50
"tests/test_fixtures.py"
];
meta = with lib; {
homepage = "https://github.com/aio-libs/pytest-aiohttp/";
changelog = "https://github.com/aio-libs/pytest-aiohttp/blob/v${version}/CHANGES.rst";
description = "Pytest plugin for aiohttp support";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}