2021-03-18 10:42:32 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-11-09 17:29:01 +01:00
|
|
|
, pythonOlder
|
2021-03-18 10:42:32 +01:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ytmusicapi";
|
2021-11-09 17:29:01 +01:00
|
|
|
version = "0.19.4";
|
|
|
|
format = "setuptools";
|
2021-03-18 10:42:32 +01:00
|
|
|
|
2021-11-09 17:29:01 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-18 10:42:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-09 17:29:01 +01:00
|
|
|
sha256 = "sha256-AAGUfa91f9aquPLQZs9kQDbZXrBrxjSBFdWIrxB5D/I=";
|
2021-03-18 10:42:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # requires network access
|
|
|
|
|
2021-11-09 17:29:01 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ytmusicapi"
|
|
|
|
];
|
2021-03-18 10:42:32 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-09 17:29:01 +01:00
|
|
|
description = "Python API for YouTube Music";
|
2021-03-18 10:42:32 +01:00
|
|
|
homepage = "https://github.com/sigma67/ytmusicapi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|