diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-29 21:10:49 +0200 |
|---|---|---|
| committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-29 21:10:49 +0200 |
| commit | e9bcabc5e4dfb792bbcfde292edff193ec6160b8 (patch) | |
| tree | 7bd38c0ba81df79817122d3524934e84b25c4aa5 /pkgs/development/python-modules/python-roborock | |
| parent | fe2ecaf706a5907b5e54d979fbde4924d84b65fc (diff) | |
python310Packages.python-roborock: init at 0.8.3
Diffstat (limited to 'pkgs/development/python-modules/python-roborock')
| -rw-r--r-- | pkgs/development/python-modules/python-roborock/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-roborock/default.nix b/pkgs/development/python-modules/python-roborock/default.nix new file mode 100644 index 000000000000..4ca120090ea3 --- /dev/null +++ b/pkgs/development/python-modules/python-roborock/default.nix @@ -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 ]; + }; +} |
