Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 poetry-core, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytestCheckHook, 13 pythonOlder, 14 syrupy, 15 yarl, 16}: 17 18buildPythonPackage rec { 19 pname = "spotifyaio"; 20 version = "1.0.0"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.11"; 24 25 src = fetchFromGitHub { 26 owner = "joostlek"; 27 repo = "python-spotify"; 28 tag = "v${version}"; 29 hash = "sha256-wl8THtmdJ2l6XNDtmmnk/MF+qTZL0UsbL8o6i/Vwf5k="; 30 }; 31 32 build-system = [ poetry-core ]; 33 34 dependencies = [ 35 aiohttp 36 mashumaro 37 orjson 38 yarl 39 ]; 40 41 # With 0.6.0 the tests are properly mocked 42 doCheck = false; 43 44 nativeCheckInputs = [ 45 aioresponses 46 syrupy 47 pytest-asyncio 48 pytest-cov-stub 49 pytestCheckHook 50 ]; 51 52 pythonImportsCheck = [ "spotifyaio" ]; 53 54 meta = { 55 description = "Module for interacting with for Spotify"; 56 homepage = "https://github.com/joostlek/python-spotify/"; 57 changelog = "https://github.com/joostlek/python-spotify/releases/tag/${src.tag}"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ fab ]; 60 }; 61}