43 lines
844 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
mashumaro,
requests,
}:
buildPythonPackage rec {
pname = "py-opensonic";
version = "7.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "khers";
repo = "py-opensonic";
tag = "v${version}";
hash = "sha256-t+MftumVBcIOO8WvWZcLXLp5Iq87Vpvqc4cxH+yTBAo=";
};
build-system = [ setuptools ];
dependencies = [
mashumaro
requests
];
doCheck = false; # no tests
pythonImportsCheck = [
"libopensonic"
];
meta = with lib; {
description = "Python library to wrap the Open Subsonic REST API";
homepage = "https://github.com/khers/py-opensonic";
changelog = "https://github.com/khers/py-opensonic/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hexa ];
};
}