diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2020-11-18 04:00:21 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-11-17 19:23:17 -0800 |
commit | cfef6dd82ce4dc63e15503a0ca59bc1ebf7ce07d (patch) | |
tree | 6f9bcba3ea81adfc3e1c4a955bf1fb96324ea290 | |
parent | 204501b9cfd50eee9616e14319f34e710aff33ef (diff) |
python3Packages.ircrobots: 0.3.3 -> 0.3.5
-rw-r--r-- | pkgs/development/python-modules/ircrobots/default.nix | 12 | ||||
-rw-r--r-- | pkgs/development/python-modules/ircrobots/relax-dependencies.patch | 14 |
2 files changed, 7 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/ircrobots/default.nix b/pkgs/development/python-modules/ircrobots/default.nix index 359cf3e6934f..74496e402200 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 9aed3577f63d..000000000000 --- 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 |