Fabian Affolter 2024-02-07 00:02:18 +01:00
parent 580a50c1da
commit 8a43061fa5

View File

@ -4,41 +4,29 @@
, buildPythonPackage
, cryptography
, fetchFromGitHub
, fetchpatch
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, voluptuous
, wheel
}:
buildPythonPackage rec {
pname = "python-otbr-api";
version = "2.5.0";
format = "pyproject";
version = "2.6.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
repo = "python-otbr-api";
rev = "refs/tags/${version}";
hash = "sha256-bPN2h60ypjlKpXs1xDS7bZcGRXvatA3EdlAX/HLxxTM=";
hash = "sha256-RMj4NdEbMIxh2PDzbhUWgmcdzRXY8RxcQNN/bbGOW5Q=";
};
patches = [
# https://github.com/home-assistant-libs/python-otbr-api/pull/68
(fetchpatch {
name = "relax-setuptools-dependency.patch";
url = "https://github.com/home-assistant-libs/python-otbr-api/commit/37eb19c12d17ac7d040ded035d8401def872fbda.patch";
hash = "sha256-JGsaLQNbUfz0uK/MeGnR2XTJDs4RnTOEg7BavfDPArg=";
})
];
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [