mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #328463 from dotlambda/python3Packages.pyheos
python312Packages.pyheos: 0.7.2 -> 0.7.4
This commit is contained in:
commit
239cea6f5b
@ -2,42 +2,39 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonAtLeast,
|
||||
setuptools,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyheos";
|
||||
version = "0.7.2";
|
||||
format = "setuptools";
|
||||
version = "0.7.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andrewsayre";
|
||||
repo = "pyheos";
|
||||
rev = version;
|
||||
sha256 = "0rgzg7lnqzzqrjp73c1hj1hq8p0j0msyih3yr4wa2rj81s8ihmby";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-vz81FepXWcCdlY1v7ozp+/l+XpYb91mNmRiLKwjrC4A=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
# accesses network
|
||||
"test_connect_timeout"
|
||||
]
|
||||
++ lib.optionals (pythonAtLeast "3.12") [
|
||||
# stuck in epoll
|
||||
"test_disconnect"
|
||||
"test_commands_fail_when_disconnected"
|
||||
];
|
||||
disabledTests = [
|
||||
# accesses network
|
||||
"test_connect_timeout"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyheos" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/andrewsayre/pyheos/releases/tag/${version}";
|
||||
description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol";
|
||||
homepage = "https://github.com/andrewsayre/pyheos";
|
||||
license = licenses.asl20;
|
||||
|
Loading…
Reference in New Issue
Block a user