Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 66 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, asyncclick, buildPythonPackage, fetchFromGitHub, importlib-metadata, pydantic, poetry-core, pytest-asyncio, pytest-mock, pytestCheckHook, pythonOlder, voluptuous}:
buildPythonPackage rec { pname = "python-kasa"; version = "0.5.1"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-vp2r842f9A2lEFLhUcHyGZavAWT4Ke9mH+FAlGucdqo="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ asyncclick importlib-metadata pydantic ];
nativeCheckInputs = [ pytest-asyncio pytest-mock pytestCheckHook voluptuous ];
pytestFlagsArray = [ "--asyncio-mode=auto" ];
disabledTestPaths = [ # Skip the examples tests "kasa/tests/test_readme_examples.py" ];
pythonImportsCheck = [ "kasa" ];
meta = with lib; { description = "Python API for TP-Link Kasa Smarthome products"; homepage = "https://python-kasa.readthedocs.io/"; changelog = "https://github.com/python-kasa/python-kasa/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ fab ]; };}