Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "py-opensonic"; 10 version = "5.1.1"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "khers"; 15 repo = "py-opensonic"; 16 rev = "v${version}"; 17 hash = "sha256-wXTXuX+iIMEoALxsciopucmvBxAyEeiOgjJPrbD63gM="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 dependencies = [ requests ]; 23 24 doCheck = false; # no tests 25 26 pythonImportsCheck = [ 27 "libopensonic" 28 ]; 29 30 meta = with lib; { 31 description = "Python library to wrap the Open Subsonic REST API"; 32 homepage = "https://github.com/khers/py-opensonic"; 33 changelog = "https://github.com/khers/py-opensonic/blob/${src.rev}/CHANGELOG.md"; 34 license = licenses.gpl3Only; 35 maintainers = with maintainers; [ hexa ]; 36 }; 37}