mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
0215034f25
when they already rely on SRI hashes.
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, webtest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "webtest-aiohttp";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-UuAz/k/Tnumupv3ybFR7PkYHwG3kH7M5oobZykEP+ao=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "python311-compat.patch";
|
|
url = "https://github.com/sloria/webtest-aiohttp/commit/64e5ab1867ea9ef87901bb2a1a6142566bffc90b.patch";
|
|
hash = "sha256-OKJGajqJLFMkcbGmGfU9G5hCpJaj24Gs363sI0z7YZw=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
webtest
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiohttp
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"webtest_aiohttp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/sloria/webtest-aiohttp/blob/${src.rev}/CHANGELOG.rst";
|
|
description = "Provides integration of WebTest with aiohttp.web applications";
|
|
homepage = "https://github.com/sloria/webtest-aiohttp";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ cript0nauta ];
|
|
};
|
|
}
|