Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/bellows/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

buildPythonPackage rec {
pname = "bellows";
version = "0.48.2";
version = "0.49.0";
pyproject = true;

src = fetchFromGitHub {
owner = "zigpy";
repo = "bellows";
tag = version;
hash = "sha256-igv/F65oZKYj8hd9KCYlbz6Yf9Ny1lnW4yFs0XT4waQ=";
hash = "sha256-haWej3ZcUPd9Rpqf2PH8r0useylnLDaPiSctrwLz71Q=";
};

postPatch = ''
Expand Down
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/looptime/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
async-timeout,
buildPythonPackage,
fetchFromGitHub,
lib,
pytest-asyncio,
pytestCheckHook,
setuptools,
setuptools-scm,
}:

buildPythonPackage (finalAttrs: {
pname = "looptime";
version = "0.7";
pyproject = true;

src = fetchFromGitHub {
owner = "nolar";
repo = "looptime";
tag = finalAttrs.version;
hash = "sha256-nQNGE/o5QNAw4OSs+O5oWiq+JX+ShV6njOHkn1IlvtE=";
};

build-system = [
setuptools
setuptools-scm
];

pythonImportsCheck = [ "looptime" ];

nativeCheckInputs = [
async-timeout
pytest-asyncio
pytestCheckHook
];

meta = {
changelog = "https://github.com/nolar/looptime/releases/tag/${finalAttrs.src.tag}";
description = "Time dilation & contraction in asyncio event loops (in tests)";
homepage = "https://github.com/nolar/looptime";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,

# build-system
setuptools,
Expand All @@ -19,6 +20,9 @@ buildPythonPackage rec {
version = "0.16";
pyproject = true;

# https://github.com/home-assistant-libs/pyserial-asyncio-fast/pull/37
disabled = pythonAtLeast "3.14";

src = fetchFromGitHub {
owner = "bdraco";
repo = "pyserial-asyncio-fast";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/zha-quirks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.150";
version = "0.0.151";
pyproject = true;

disabled = pythonOlder "3.12";
Expand All @@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "zha-device-handlers";
tag = version;
hash = "sha256-kdbmg4SGMl3RYdPFLJhbUxfdMokQ/LrhG6hTlu8eujo=";
hash = "sha256-eB4Xmkbueig9UgGs0d9WLGFLQ20XiCdFtI4KKa8frJw=";
};

postPatch = ''
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/zha/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
buildPythonPackage,
fetchFromGitHub,
freezegun,
looptime,
pyserial,
pyserial-asyncio-fast,
pytest-asyncio_0,
Expand All @@ -22,7 +23,7 @@

buildPythonPackage rec {
pname = "zha";
version = "0.0.81";
version = "0.0.83";
pyproject = true;

disabled = pythonOlder "3.12";
Expand All @@ -31,7 +32,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "zha";
tag = version;
hash = "sha256-MsuCzb2jIjZh24tXUz0fE9MgstuvmUOIWEC0s1jRoow=";
hash = "sha256-/poB5dkD5bta/GWOah6+bz+w++C1NWf649TUzqvDfU0=";
};

postPatch = ''
Expand All @@ -58,6 +59,7 @@ buildPythonPackage rec {

nativeCheckInputs = [
freezegun
looptime
pytest-asyncio_0
pytest-timeout
pytest-xdist
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/python-modules/zigpy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
crccheck,
cryptography,
fetchFromGitHub,
filelock,
freezegun,
frozendict,
jsonschema,
Expand All @@ -25,14 +26,14 @@

buildPythonPackage rec {
pname = "zigpy";
version = "0.88.0";
version = "0.90.0";
pyproject = true;

src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy";
tag = version;
hash = "sha256-jYhanzekQIIBSqoB/8sToKOhAS/Cicx5OJ83XxWTp7E=";
hash = "sha256-HTQ9azIXnNkNM+s7w0oerDf9+RcCO8DF9+kL9Uzevyk=";
};

postPatch = ''
Expand All @@ -59,6 +60,7 @@ buildPythonPackage rec {

nativeCheckInputs = [
aioresponses
filelock
freezegun
pytest-asyncio_0
pytest-timeout
Expand All @@ -68,13 +70,11 @@ buildPythonPackage rec {
disabledTests = [
# assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False
"test_quirks_v2"
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [
"test_periodic_scan_priority"
];

disabledTestPaths = [
# Tests require network access
"tests/ota/test_ota_image.py"
"tests/ota/test_ota_providers.py"
# All tests fail to shutdown thread during teardown
"tests/ota/test_ota_matching.py"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9100,6 +9100,8 @@ self: super: with self; {

loompy = callPackage ../development/python-modules/loompy { };

looptime = callPackage ../development/python-modules/looptime { };

loopy = callPackage ../development/python-modules/loopy { };

looseversion = callPackage ../development/python-modules/looseversion { };
Expand Down
Loading