Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions pkgs/development/python-modules/radios/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,28 @@
, awesomeversion
, backoff
, cachetools
, mashumaro
, orjson
, pycountry
, pydantic
, yarl
, aresponses
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "radios";
version = "0.1.1";
version = "0.3.0";
pyproject = true;

disabled = pythonOlder "3.9";
disabled = pythonOlder "3.11";

format = "pyproject";

src = fetchFromGitHub {
owner = "frenck";
repo = "python-radios";
rev = "v${version}";
hash = "sha256-NCBch9MCWVD6ez0sIUph8rwOOzEMZtwC4atXJe53xZM=";
hash = "sha256-bzo+SA8kqc2GcxSV0TiIJyPVG+JshdsMoXSUhZYSphU=";
};

postPatch = ''
Expand All @@ -46,18 +48,22 @@ buildPythonPackage rec {
awesomeversion
backoff
cachetools
mashumaro
orjson
pycountry
pydantic
yarl
];

nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];

pythonImportsCheck = [ "radios" ];

__darwinAllowLocalNetworking = true;

meta = with lib; {
description = "Asynchronous Python client for the Radio Browser API";
homepage = "https://github.com/frenck/python-radios";
Expand Down