mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 02:33:15 +00:00
python311Packages.roombapy: 1.6.10 -> 1.6.13
https://github.com/pschmitt/roombapy/releases/tag/1.6.11 https://github.com/pschmitt/roombapy/releases/tag/1.6.12 https://github.com/pschmitt/roombapy/releases/tag/1.6.13
This commit is contained in:
parent
ca058ca635
commit
2dc8bd63e5
@ -5,41 +5,40 @@
|
|||||||
, orjson
|
, orjson
|
||||||
, paho-mqtt
|
, paho-mqtt
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pydantic
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "roombapy";
|
pname = "roombapy";
|
||||||
version = "1.6.10";
|
version = "1.6.13";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pschmitt";
|
owner = "pschmitt";
|
||||||
repo = "roombapy";
|
repo = "roombapy";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-aGNSySSKCx/8GYUdDWMSAhMBex738UACqnqj/Qx1m38=";
|
hash = "sha256-5TFuOk3fj4kg5MyWz7HQ/zWdvceFa3mWnFx+Yuq2III=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# hbmqtt was replaced by amqtt
|
|
||||||
substituteInPlace tests/test_roomba_integration.py \
|
|
||||||
--replace "from hbmqtt.broker import Broker" "from amqtt.broker import Broker"
|
|
||||||
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'orjson = ">=3.8.7"' 'orjson = "*"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"orjson"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
orjson
|
orjson
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
|
pydantic
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user