`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-retry / default.nix
blob86d44c375b353eb383cfe70bca3a6235c95ec5cc
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pytest-aiohttp,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "aiohttp-retry";
14   version = "2.9.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "inyutin";
21     repo = "aiohttp_retry";
22     tag = "v${version}";
23     hash = "sha256-9riIGQDxC+Ee16itSWJWobPkmuy7Mkn2eyTkevIGse8=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ aiohttp ];
30   __darwinAllowLocalNetworking = true;
32   nativeCheckInputs = [
33     pytest-aiohttp
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "aiohttp_retry" ];
39   pytestFlagsArray = [ "--asyncio-mode=auto" ];
41   meta = with lib; {
42     description = "Retry client for aiohttp";
43     homepage = "https://github.com/inyutin/aiohttp_retry";
44     changelog = "https://github.com/inyutin/aiohttp_retry/releases/tag/v${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ fab ];
47   };