python312Packages.music-assistant-models: init at 1.1.3

This commit is contained in:
Martin Weinelt
2024-12-09 03:46:30 +01:00
parent 4bfed6e8cc
commit 34d170a59f
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
mashumaro,
orjson,
# tests
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "music-assistant-models";
version = "1.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "music-assistant";
repo = "models";
rev = "refs/tags/v${version}";
hash = "sha256-FbnwUfAwCwwBKqEUtb2ZBxHehFwJdr9YkuWKox018BY=";
};
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"
];
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.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
};
}
+2
View File
@@ -8503,6 +8503,8 @@ self: super: with self; {
muscima = callPackage ../development/python-modules/muscima { };
music-assistant-models = callPackage ../development/python-modules/music-assistant-models { };
musicbrainzngs = callPackage ../development/python-modules/musicbrainzngs { };
music-tag = callPackage ../development/python-modules/music-tag { };