2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
2024-01-25 14:12:00 +00:00
|
|
|
, httpx
|
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";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.1.0";
|
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;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-XTpw8bgFZo35PJngr9oweU6fY3KAphJsrEhkKzWHLIA=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
2024-01-25 14:12:00 +00:00
|
|
|
httpx
|
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 ];
|
|
|
|
};
|
|
|
|
}
|