Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 43 lines 764 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, requests 6, setuptools 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "ytmusicapi"; 12 version = "0.24.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-8NYutkZwR8tQzsVzYsOo6HdkiZ6WbIconDjcOwgs3PM="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 setuptools-scm 25 ]; 26 27 propagatedBuildInputs = [ 28 requests 29 ]; 30 31 doCheck = false; # requires network access 32 33 pythonImportsCheck = [ 34 "ytmusicapi" 35 ]; 36 37 meta = with lib; { 38 description = "Python API for YouTube Music"; 39 homepage = "https://github.com/sigma67/ytmusicapi"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}