diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/aiobafi6/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/aiobafi6/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/aiobafi6/default.nix b/nixpkgs/pkgs/development/python-modules/aiobafi6/default.nix new file mode 100644 index 000000000000..e92fa59d920a --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/aiobafi6/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, protobuf +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, zeroconf +}: + +buildPythonPackage rec { + pname = "aiobafi6"; + version = "0.8.2"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "jfroy"; + repo = "aiobafi6"; + rev = "refs/tags/${version}"; + hash = "sha256-ng+WpLhAfsouFA9biomc0V+L9XQHDthJeJLv8ttnYBc="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + protobuf + zeroconf + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aiobafi6" + ]; + + meta = with lib; { + description = "Library for communication with the Big Ass Fans i6 firmware"; + homepage = "https://github.com/jfroy/aiobafi6"; + changelog = "https://github.com/jfroy/aiobafi6/releases/tag/0.8.2"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |