Skip to content

Commit

Permalink
Merge pull request #216197 from fabaff/aioguardian-at
Browse files Browse the repository at this point in the history
python311Packages.aioguardian: drop asynctest
  • Loading branch information
davidak authored Feb 16, 2023
2 parents e3924e5 + e48314c commit 2734bb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
18 changes: 7 additions & 11 deletions pkgs/development/python-modules/aioguardian/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@
, aiohttp
, async-timeout
, asyncio-dgram
, asynctest
, buildPythonPackage
, docutils
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, voluptuous
}:

buildPythonPackage rec {
pname = "aioguardian";
version = "2022.10.0";
format = "pyproject";

disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
};

format = "pyproject";

nativeBuildInputs = [
poetry-core
];
Expand All @@ -40,17 +41,11 @@ buildPythonPackage rec {

nativeCheckInputs = [
asyncio-dgram
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'docutils = "<0.18"' 'docutils = "*"'
'';

disabledTestPaths = [
"examples/"
];
Expand All @@ -62,10 +57,11 @@ buildPythonPackage rec {
meta = with lib; {
description = " Python library to interact with Elexa Guardian devices";
longDescription = ''
aioguardian is a Pytho3, asyncio-focused library for interacting with the
aioguardian is an asyncio-focused library for interacting with the
Guardian line of water valves and sensors from Elexa.
'';
homepage = "https://github.com/bachya/aioguardian";
changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
Expand Down
12 changes: 9 additions & 3 deletions pkgs/development/python-modules/asyncio-dgram/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jsbronder";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
rev = "refs/tagsv${version}";
hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
};

nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];

checkInputs = [
pytest-asyncio
];

# OSError: AF_UNIX path too long
doCheck = !stdenv.isDarwin;

disabledTests = [
"test_protocol_pause_resume"
# TypeError: socket type must be 2
"test_from_socket_bad_socket"
];

pythonImportsCheck = [
Expand All @@ -40,6 +45,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
Expand Down

0 comments on commit 2734bb7

Please sign in to comment.