Merge pull request #216197 from fabaff/aioguardian-at

python311Packages.aioguardian: drop asynctest

authored by davidak and committed by GitHub 2734bb74 e3924e5e

+16 -14
+7 -11
pkgs/development/python-modules/aioguardian/default.nix
··· 2 , aiohttp 3 , async-timeout 4 , asyncio-dgram 5 - , asynctest 6 , buildPythonPackage 7 , docutils 8 , fetchFromGitHub ··· 10 , pytest-aiohttp 11 , pytest-asyncio 12 , pytestCheckHook 13 , voluptuous 14 }: 15 16 buildPythonPackage rec { 17 pname = "aioguardian"; 18 version = "2022.10.0"; 19 20 src = fetchFromGitHub { 21 owner = "bachya"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 - sha256 = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo="; 25 }; 26 - 27 - format = "pyproject"; 28 29 nativeBuildInputs = [ 30 poetry-core ··· 40 41 nativeCheckInputs = [ 42 asyncio-dgram 43 - asynctest 44 pytest-aiohttp 45 pytest-asyncio 46 pytestCheckHook 47 ]; 48 49 - postPatch = '' 50 - substituteInPlace pyproject.toml \ 51 - --replace 'docutils = "<0.18"' 'docutils = "*"' 52 - ''; 53 - 54 disabledTestPaths = [ 55 "examples/" 56 ]; ··· 62 meta = with lib; { 63 description = " Python library to interact with Elexa Guardian devices"; 64 longDescription = '' 65 - aioguardian is a Pytho3, asyncio-focused library for interacting with the 66 Guardian line of water valves and sensors from Elexa. 67 ''; 68 homepage = "https://github.com/bachya/aioguardian"; 69 license = with licenses; [ mit ]; 70 maintainers = with maintainers; [ fab ]; 71 };
··· 2 , aiohttp 3 , async-timeout 4 , asyncio-dgram 5 , buildPythonPackage 6 , docutils 7 , fetchFromGitHub ··· 9 , pytest-aiohttp 10 , pytest-asyncio 11 , pytestCheckHook 12 + , pythonOlder 13 , voluptuous 14 }: 15 16 buildPythonPackage rec { 17 pname = "aioguardian"; 18 version = "2022.10.0"; 19 + format = "pyproject"; 20 + 21 + disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "bachya"; 25 repo = pname; 26 rev = "refs/tags/${version}"; 27 + hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core ··· 41 42 nativeCheckInputs = [ 43 asyncio-dgram 44 pytest-aiohttp 45 pytest-asyncio 46 pytestCheckHook 47 ]; 48 49 disabledTestPaths = [ 50 "examples/" 51 ]; ··· 57 meta = with lib; { 58 description = " Python library to interact with Elexa Guardian devices"; 59 longDescription = '' 60 + aioguardian is an asyncio-focused library for interacting with the 61 Guardian line of water valves and sensors from Elexa. 62 ''; 63 homepage = "https://github.com/bachya/aioguardian"; 64 + changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}"; 65 license = with licenses; [ mit ]; 66 maintainers = with maintainers; [ fab ]; 67 };
+9 -3
pkgs/development/python-modules/asyncio-dgram/default.nix
··· 17 src = fetchFromGitHub { 18 owner = "jsbronder"; 19 repo = pname; 20 - rev = "v${version}"; 21 - sha256 = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; 22 }; 23 24 nativeCheckInputs = [ 25 - pytest-asyncio 26 pytestCheckHook 27 ]; 28 29 # OSError: AF_UNIX path too long 30 doCheck = !stdenv.isDarwin; 31 32 disabledTests = [ 33 "test_protocol_pause_resume" 34 ]; 35 36 pythonImportsCheck = [ ··· 40 meta = with lib; { 41 description = "Python support for higher level Datagram"; 42 homepage = "https://github.com/jsbronder/asyncio-dgram"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 };
··· 17 src = fetchFromGitHub { 18 owner = "jsbronder"; 19 repo = pname; 20 + rev = "refs/tagsv${version}"; 21 + hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; 22 }; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 + checkInputs = [ 29 + pytest-asyncio 30 + ]; 31 + 32 # OSError: AF_UNIX path too long 33 doCheck = !stdenv.isDarwin; 34 35 disabledTests = [ 36 "test_protocol_pause_resume" 37 + # TypeError: socket type must be 2 38 + "test_from_socket_bad_socket" 39 ]; 40 41 pythonImportsCheck = [ ··· 45 meta = with lib; { 46 description = "Python support for higher level Datagram"; 47 homepage = "https://github.com/jsbronder/asyncio-dgram"; 48 + changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog"; 49 license = with licenses; [ mit ]; 50 maintainers = with maintainers; [ fab ]; 51 };