diff --git a/pkgs/development/python-modules/tidalapi/default.nix b/pkgs/development/python-modules/tidalapi/default.nix new file mode 100644 index 000000000000..405b7cea1198 --- /dev/null +++ b/pkgs/development/python-modules/tidalapi/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, python-dateutil +, requests +}: + +buildPythonPackage rec { + pname = "tidalapi"; + version = "0.7.0"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-LdlTBkCOb7tXiupsNJ5lbk38syKXeADvi2IdGpW/dk8="; + }; + + propagatedBuildInputs = [ + requests + python-dateutil + ]; + + doCheck = false; # tests require internet access + + pythonImportsCheck = [ + "tidalapi" + ]; + + meta = with lib; { + 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"; + license = licenses.gpl3; + maintainers = [ maintainers.rodrgz ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4dd5e12b222c..05fd665705dd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11331,6 +11331,8 @@ self: super: with self; { py = python.override { x11Support=true; }; }; + tidalapi = callPackage ../development/python-modules/tidalapi { }; + tidyexc = callPackage ../development/python-modules/tidyexc { }; tidylib = callPackage ../development/python-modules/pytidylib { };