2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, setuptools
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyradios";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.0.2";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-O30ExmvWu4spwDytFVPWGjR8w3XSTaWd2Z0LGQibq9g=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
setuptools
|
2021-03-20 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
# Tests and pythonImportsCheck require network access
|
2021-03-20 04:20:00 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for the https://api.radio-browser.info";
|
|
|
|
homepage = "https://github.com/andreztz/pyradios";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|