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