nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 55 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 defusedxml, 5 fetchFromGitHub, 6 protobuf, 7 pycryptodomex, 8 pyogg, 9 requests, 10 setuptools, 11 websocket-client, 12 zeroconf, 13}: 14 15buildPythonPackage rec { 16 pname = "librespot"; 17 version = "0.0.10"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "kokarare1212"; 22 repo = "librespot-python"; 23 tag = "v${version}"; 24 hash = "sha256-VjVPrWttOYfWsxzZpRgpZVenmP0y9Fea6Bhv9U8BO9U="; 25 }; 26 27 env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python"; 28 29 pythonRelaxDeps = true; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 defusedxml 35 protobuf 36 pycryptodomex 37 pyogg 38 requests 39 websocket-client 40 zeroconf 41 ]; 42 43 # Doesn't include any tests 44 doCheck = false; 45 46 pythonImportsCheck = [ "librespot" ]; 47 48 meta = { 49 description = "Open Source Spotify Client"; 50 homepage = "https://github.com/kokarare1212/librespot-python"; 51 changelog = "https://github.com/kokarare1212/librespot-python/releases/tag/v${version}"; 52 license = lib.licenses.asl20; 53 maintainers = with lib.maintainers; [ onny ]; 54 }; 55}