python313Packages.spotifyaio: fix version (#472810)

This commit is contained in:
Aleksana
2025-12-21 14:46:06 +00:00
committed by GitHub
@@ -10,7 +10,6 @@
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
@@ -20,8 +19,6 @@ buildPythonPackage rec {
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "joostlek";
repo = "python-spotify";
@@ -29,6 +26,12 @@ buildPythonPackage rec {
hash = "sha256-wl8THtmdJ2l6XNDtmmnk/MF+qTZL0UsbL8o6i/Vwf5k=";
};
postPatch = ''
# Version is wrong and not properly set by upstream's workflow
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.2.0"' 'version = "${version}"'
'';
build-system = [ poetry-core ];
dependencies = [
@@ -38,9 +41,6 @@ buildPythonPackage rec {
yarl
];
# With 0.6.0 the tests are properly mocked
doCheck = false;
nativeCheckInputs = [
aioresponses
syrupy