@@ -1,27 +1,50 @@
1−{ lib, buildPythonPackage, fetchPypi
2−, aiohttp, pytest, pytest-cov, pytest-aiohttp
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, fetchPypi
5+, pytest-aiohttp
6+, pytestCheckHook
7+, pythonOlder
8+, typing-extensions
39}:
410
511buildPythonPackage rec {
6− pname = "aiohttp_remotes";
12+ pname = "aiohttp-remotes";
713 version = "1.1.0";
14+ format = "setuptools";
15+
16+ disabled = pythonOlder "3.6";
817
918 src = fetchPypi {
10− inherit pname version;
19+ pname = "aiohttp_remotes";
20+ inherit version;
1121 sha256 = "e44f2c5fd5fc3305477c89bb25f14570589100cc58c48b36745d4239839d3174";
1222 };
1323
14− propagatedBuildInputs = [ aiohttp ];
24+ propagatedBuildInputs = [
25+ aiohttp
26+ ] ++ lib.optionals (pythonOlder "3.7") [
27+ typing-extensions
28+ ];
29+
30+ checkInputs = [
31+ pytest-aiohttp
32+ pytestCheckHook
33+ ];
1534
16− checkInputs = [ pytest pytest-cov pytest-aiohttp ];
17− checkPhase = ''
18− python -m pytest
35+ postPatch = ''
36+ substituteInPlace setup.cfg \
37+ --replace " --no-cov-on-fail --cov-branch --cov=aiohttp_remotes --cov-report=term --cov-report=html" ""
1938 '';
2039
40+ pythonImportsCheck = [
41+ "aiohttp_remotes"
42+ ];
43+
2144 meta = with lib; {
22− homepage = "https://github.com/wikibusiness/aiohttp-remotes";
2345 description = "A set of useful tools for aiohttp.web server";
46+ homepage = "https://github.com/wikibusiness/aiohttp-remotes";
2447 license = licenses.mit;
25− maintainers = [ maintainers.qyliss ];
48+ maintainers = with maintainers; [ qyliss ];
2649 };
2750}