mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-13 02:39:58 +00:00
python310Packages.python-roborock: init at 0.8.3
This commit is contained in:
59
pkgs/development/python-modules/python-roborock/default.nix
Normal file
59
pkgs/development/python-modules/python-roborock/default.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, dacite
|
||||
, fetchFromGitHub
|
||||
, paho-mqtt
|
||||
, poetry-core
|
||||
, pycryptodome
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-roborock";
|
||||
version = "0.8.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "humbertogontijo";
|
||||
repo = "python-roborock";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-O7MjxCQ4JwFFC2ibdU8hCPhFPQhV5/LsmDO6vRdyYL0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
click
|
||||
dacite
|
||||
paho-mqtt
|
||||
pycryptodome
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"roborock"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library & console tool for controlling Roborock vacuum";
|
||||
homepage = "https://github.com/humbertogontijo/python-roborock";
|
||||
changelog = "https://github.com/humbertogontijo/python-roborock/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -9660,6 +9660,8 @@ self: super: with self; {
|
||||
|
||||
python-registry = callPackage ../development/python-modules/python-registry { };
|
||||
|
||||
python-roborock = callPackage ../development/python-modules/python-roborock { };
|
||||
|
||||
python-rtmidi = callPackage ../development/python-modules/python-rtmidi {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) CoreAudio CoreMIDI CoreServices;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user