From 76e9a5861501df5dafd00df9368a397827386f6f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 1 Mar 2023 18:56:24 +0100 Subject: [PATCH] python310Packages.aiopyarr: Substitute version value Because setuptools has a stricter validation now, this started breaking. > setuptools.extern.packaging.version.InvalidVersion: Invalid version: 'master' --- pkgs/development/python-modules/aiopyarr/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix index c728da8b5528..65ce5e4adbbf 100644 --- a/pkgs/development/python-modules/aiopyarr/default.nix +++ b/pkgs/development/python-modules/aiopyarr/default.nix @@ -24,6 +24,11 @@ buildPythonPackage rec { hash = "sha256-8/ixL4ByaBYoPbB4g+Rgx+5OM6vjrFTUEPR42wBKyyg="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace 'version="master"' 'version="${version}"' + ''; + propagatedBuildInputs = [ aiohttp ciso8601