Commit e5d8c15c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pysqueezebox: refactor

parent 67830228
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  pytest-asyncio,
  pytestCheckHook,
  pythonAtLeast,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pysqueezebox";
  version = "0.9.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "rajlaud";
    repo = pname;
    repo = "pysqueezebox";
    rev = "refs/tags/v${version}";
    hash = "sha256-gHv1dSWU0erzesneodMhCR1LQYutpDVithZ5M1lgk3I=";
  };

  propagatedBuildInputs = [ aiohttp ];
  build-system = [ setuptools ];

  dependencies = [
    async-timeout
    aiohttp
  ];

  nativeCheckInputs = [
    pytest-asyncio
@@ -45,6 +52,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Asynchronous library to control Logitech Media Server";
    homepage = "https://github.com/rajlaud/pysqueezebox";
    changelog = "https://github.com/rajlaud/pysqueezebox/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ nyanloutre ];
  };