Unverified Commit 98e3e052 authored by Clément's avatar Clément
Browse files

python31{1,2}Packages.tidalapi: fix build failure

parent 24dcde46
Loading
Loading
Loading
Loading
+20 −17
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, python-dateutil
, poetry-core
, requests
{
  lib,
  buildPythonPackage,
  fetchPypi,
  python-dateutil,
  poetry-core,
  requests,
  isodate,
  ratelimit,
  typing-extensions,
  mpegdash,
}:

buildPythonPackage rec {
  pname = "tidalapi";
  version = "0.7.6";
  format = "pyproject";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-X6U34T1sM4P+JFpOfcI7CmULcGZ4SCXwP2fFHKi1cWE=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [
    requests
    python-dateutil
    mpegdash
    isodate
    ratelimit
    typing-extensions
  ];

  doCheck = false; # tests require internet access

  pythonImportsCheck = [
    "tidalapi"
  ];
  pythonImportsCheck = [ "tidalapi" ];

  meta = with lib; {
  meta = {
    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 = [ ];
    license = lib.licenses.gpl3;
  };
}