2024-09-19 22:16:11 -04:00
|
|
|
{
|
2025-02-18 15:19:08 -05:00
|
|
|
# nix build inputs
|
|
|
|
lib,
|
2024-09-19 22:16:11 -04:00
|
|
|
spotifywebapi-src,
|
2025-02-18 15:19:08 -05:00
|
|
|
# deps
|
2024-09-19 22:16:11 -04:00
|
|
|
python3Packages,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (builtins) elemAt head readFile split;
|
|
|
|
tag = head (split "\"" (elemAt (split "VERSION:str = \"" (readFile "${spotifywebapi-src}/spotifywebapipython/const.py")) 2));
|
|
|
|
in
|
|
|
|
python3Packages.buildPythonPackage {
|
|
|
|
pname = "spotifywebapiPython";
|
|
|
|
version = "${tag}+${spotifywebapi-src.shortRev}";
|
2024-12-21 17:30:21 -05:00
|
|
|
pyproject = true;
|
2024-09-19 22:16:11 -04:00
|
|
|
|
|
|
|
src = spotifywebapi-src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
lxml
|
|
|
|
oauthlib
|
|
|
|
platformdirs
|
2025-01-22 13:00:07 -05:00
|
|
|
pychromecast
|
2024-09-19 22:16:11 -04:00
|
|
|
requests
|
|
|
|
requests_oauthlib
|
2024-12-21 17:30:21 -05:00
|
|
|
setuptools
|
2025-01-22 13:00:07 -05:00
|
|
|
soco
|
2024-09-30 13:39:09 -04:00
|
|
|
urllib3
|
2024-09-19 22:16:11 -04:00
|
|
|
zeroconf
|
2025-01-10 23:59:29 -05:00
|
|
|
smartinspect # overridden in python3Packages
|
2024-09-19 22:16:11 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spotifywebapipython"
|
|
|
|
];
|
2025-02-18 15:19:08 -05:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/thlucas1/SpotifyWebApiPython";
|
|
|
|
description = ''
|
|
|
|
A Spotify Web Api Client for Python.
|
|
|
|
'';
|
|
|
|
};
|
2024-09-19 22:16:11 -04:00
|
|
|
}
|