Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / webtest-aiohttp / default.nix
blobf8666689ca316032f44353c2431c366cf6d810fa
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , fetchpatch
6 , pytest-aiohttp
7 , pytestCheckHook
8 , pythonOlder
9 , webtest
12 buildPythonPackage rec {
13   pname = "webtest-aiohttp";
14   version = "2.0.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "sloria";
21     repo = pname;
22     rev = version;
23     hash = "sha256-UuAz/k/Tnumupv3ybFR7PkYHwG3kH7M5oobZykEP+ao=";
24   };
26   patches = [
27     (fetchpatch {
28       name = "python311-compat.patch";
29       url = "https://github.com/sloria/webtest-aiohttp/commit/64e5ab1867ea9ef87901bb2a1a6142566bffc90b.patch";
30       hash = "sha256-OKJGajqJLFMkcbGmGfU9G5hCpJaj24Gs363sI0z7YZw=";
31     })
32   ];
34   propagatedBuildInputs = [
35     webtest
36   ];
38   nativeCheckInputs = [
39     aiohttp
40     pytest-aiohttp
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [
45     "webtest_aiohttp"
46   ];
48   meta = with lib; {
49     changelog = "https://github.com/sloria/webtest-aiohttp/blob/${src.rev}/CHANGELOG.rst";
50     description = "Provides integration of WebTest with aiohttp.web applications";
51     homepage = "https://github.com/sloria/webtest-aiohttp";
52     license = licenses.mit;
53     maintainers = with maintainers; [ cript0nauta ];
54   };