depot/third_party/nixpkgs/pkgs/development/python-modules/py-opensonic/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

37 lines
804 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, requests
}:
buildPythonPackage rec {
pname = "py-opensonic";
version = "5.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "khers";
repo = "py-opensonic";
rev = "v${version}";
hash = "sha256-wXTXuX+iIMEoALxsciopucmvBxAyEeiOgjJPrbD63gM=";
};
build-system = [ setuptools ];
dependencies = [ 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 ];
};
}