Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 88 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies aiohttp, av, mashumaro, numpy, orjson, pillow, zeroconf,
# test dependencies pytest-aiohttp, pytest-cov-stub, pytest-timeout, pytest-xdist, pytestCheckHook,
# meta music-assistant,
nixosTests,}:
buildPythonPackage (finalAttrs: { pname = "aiosendspin"; version = "4.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "Sendspin"; repo = "aiosendspin"; tag = finalAttrs.version; hash = "sha256-7edFCGNbECW5rrTbF7vJ4lJUc2IrQZD9VTR3IxJRP08="; };
# https://github.com/Sendspin/aiosendspin/blob/4.4.0/pyproject.toml#L7 postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' '';
build-system = [ setuptools ];
dependencies = [ aiohttp av mashumaro numpy orjson pillow zeroconf ];
nativeCheckInputs = [ pytest-aiohttp pytest-cov-stub pytest-timeout pytest-xdist pytestCheckHook ];
pythonImportsCheck = [ "aiosendspin" ];
passthru = { # needs manual compat testing with music-assistant (sendspin provider) skipBulkUpdate = true; # nixpkgs-update: no auto update tests = nixosTests.music-assistant; };
meta = { changelog = "https://github.com/Sendspin/aiosendspin/releases/tag/${finalAttrs.src.tag}"; description = "Async Python library implementing the Sendspin Protocol"; homepage = "https://github.com/Sendspin/aiosendspin"; license = lib.licenses.asl20; inherit (music-assistant.meta) maintainers; };})