diff --git a/pkgs/development/python-modules/python-linkplay/default.nix b/pkgs/development/python-modules/python-linkplay/default.nix new file mode 100644 index 000000000000..362c7c4275bd --- /dev/null +++ b/pkgs/development/python-modules/python-linkplay/default.nix @@ -0,0 +1,49 @@ +{ + aiohttp, + async-timeout, + async-upnp-client, + buildPythonPackage, + fetchPypi, + lib, + pytest-asyncio, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "python-linkplay"; + version = "0.0.6"; + pyproject = true; + + src = fetchPypi { + pname = "python_linkplay"; + inherit version; + hash = "sha256-mChlhJt2p77KWXWNZztrEA8Z2BmYkPLYPdv9Gw7p5/I="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + async-timeout + async-upnp-client + ]; + + pythonImportsCheck = [ "linkplay" ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + # no tests on PyPI, no tags on GitHub + # https://github.com/Velleman/python-linkplay/issues/23 + doCheck = false; + + meta = { + description = "Python Library for Seamless LinkPlay Device Control"; + homepage = "https://github.com/Velleman/python-linkplay"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5120aa7220ac..422e065b164f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10461,6 +10461,8 @@ self: super: with self; { python-keystoneclient = callPackage ../development/python-modules/python-keystoneclient { }; + python-linkplay = callPackage ../development/python-modules/python-linkplay { }; + python-lsp-black = callPackage ../development/python-modules/python-lsp-black { }; python-mbedtls = callPackage ../development/python-modules/python-mbedtls { };