Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies mashumaro, orjson,
# tests pytestCheckHook, pytest-cov-stub,
# reverse dependencies music-assistant-client,}:
buildPythonPackage rec { pname = "music-assistant-models"; version = "1.1.51"; # Must be compatible with music-assistant-client package pyproject = true;
src = fetchFromGitHub { owner = "music-assistant"; repo = "models"; tag = version; hash = "sha256-vx0GlW99qDpSRDihP0dYhwgksPdCNj82SATo5TpITa4="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" '';
build-system = [ setuptools ];
dependencies = [ mashumaro orjson ];
nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "music_assistant_models" ];
passthru.tests = { inherit music-assistant-client; };
meta = { description = "Models used by Music Assistant (shared by client and server"; homepage = "https://github.com/music-assistant/models"; changelog = "https://github.com/music-assistant/models/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ ]; };}