python3Packages.aiohttp-remotes: switch to pytestCheckHook
This commit is contained in:
parent
d502e6094c
commit
b9d5df0632
1 changed files with 33 additions and 10 deletions
|
@ -1,27 +1,50 @@
|
|||
{ lib, buildPythonPackage, fetchPypi
|
||||
, aiohttp, pytest, pytest-cov, pytest-aiohttp
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp_remotes";
|
||||
pname = "aiohttp-remotes";
|
||||
version = "1.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "aiohttp_remotes";
|
||||
inherit version;
|
||||
sha256 = "e44f2c5fd5fc3305477c89bb25f14570589100cc58c48b36745d4239839d3174";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pytest-cov pytest-aiohttp ];
|
||||
checkPhase = ''
|
||||
python -m pytest
|
||||
checkInputs = [
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace " --no-cov-on-fail --cov-branch --cov=aiohttp_remotes --cov-report=term --cov-report=html" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohttp_remotes"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/wikibusiness/aiohttp-remotes";
|
||||
description = "A set of useful tools for aiohttp.web server";
|
||||
homepage = "https://github.com/wikibusiness/aiohttp-remotes";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
maintainers = with maintainers; [ qyliss ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue