diff --git a/pkgs/development/python-modules/ircrobots/default.nix b/pkgs/development/python-modules/ircrobots/default.nix index 359cf3e6934..74496e40220 100644 --- a/pkgs/development/python-modules/ircrobots/default.nix +++ b/pkgs/development/python-modules/ircrobots/default.nix @@ -13,19 +13,21 @@ buildPythonPackage rec { pname = "ircrobots"; - version = "0.3.3"; + version = "0.3.5"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "jesopo"; repo = pname; rev = "v${version}"; - sha256 = "0ykn6ch7aazv2cx13q2gr94arh6f96d8hwjwnrcjai3i3x4q2pkq"; + sha256 = "1w04gif227fhzalrds9rscqmckv5h0x2p8600s876i19w41swi32"; }; - patches = [ - ./relax-dependencies.patch - ]; + postPatch = '' + # too specific pins https://github.com/jesopo/ircrobots/issues/3 + sed -iE 's/==.*//' requirements.txt + sed -iE 's/dataclasses.*/dataclasses; python_version < "3.7"/' requirements.txt + ''; propagatedBuildInputs = [ anyio diff --git a/pkgs/development/python-modules/ircrobots/relax-dependencies.patch b/pkgs/development/python-modules/ircrobots/relax-dependencies.patch deleted file mode 100644 index 9aed3577f63..00000000000 --- a/pkgs/development/python-modules/ircrobots/relax-dependencies.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/requirements.txt b/requirements.txt -index 87a2d31..4e0efb1 100644 ---- a/requirements.txt -+++ b/requirements.txt -@@ -1,6 +1,6 @@ --anyio ==1.3.0 -+anyio - asyncio-throttle ==1.0.1 --dataclasses ==0.6 --ircstates ==0.11.2 -+dataclasses; python_version < "3.7" -+ircstates >=0.11.2 - async_stagger ==0.3.0 - async_timeout ==3.0.1