python3.pkgs.python-otbr-api: relax setuptools dependency

This commit is contained in:
Theodore Ni 2023-08-23 14:30:53 -07:00
parent f851b3a62a
commit b7df9ed8df
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -4,10 +4,13 @@
, buildPythonPackage
, cryptography
, fetchFromGitHub
, fetchpatch
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, voluptuous
, wheel
}:
buildPythonPackage rec {
@ -24,8 +27,18 @@ buildPythonPackage rec {
hash = "sha256-bPN2h60ypjlKpXs1xDS7bZcGRXvatA3EdlAX/HLxxTM=";
};
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 = [
@ -36,6 +49,7 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];