2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python-dateutil,
|
|
|
|
poetry-core,
|
|
|
|
requests,
|
|
|
|
isodate,
|
|
|
|
ratelimit,
|
|
|
|
typing-extensions,
|
|
|
|
mpegdash,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tidalapi";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7.6";
|
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-X6U34T1sM4P+JFpOfcI7CmULcGZ4SCXwP2fFHKi1cWE=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
python-dateutil
|
2024-05-15 15:35:15 +00:00
|
|
|
mpegdash
|
|
|
|
isodate
|
|
|
|
ratelimit
|
|
|
|
typing-extensions
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # tests require internet access
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "tidalapi" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/tamland/python-tidal/releases/tag/v${version}";
|
|
|
|
description = "Unofficial Python API for TIDAL music streaming service";
|
|
|
|
homepage = "https://github.com/tamland/python-tidal";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ drawbu ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|