python3Packages.ircrobots: 0.3.3 -> 0.3.5

This commit is contained in:
Martin Weinelt 2020-11-18 04:00:21 +01:00 committed by Jonathan Ringer
parent 204501b9cf
commit cfef6dd82c
2 changed files with 7 additions and 19 deletions

View file

@ -13,19 +13,21 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ircrobots"; pname = "ircrobots";
version = "0.3.3"; version = "0.3.5";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jesopo"; owner = "jesopo";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0ykn6ch7aazv2cx13q2gr94arh6f96d8hwjwnrcjai3i3x4q2pkq"; sha256 = "1w04gif227fhzalrds9rscqmckv5h0x2p8600s876i19w41swi32";
}; };
patches = [ postPatch = ''
./relax-dependencies.patch # 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 = [ propagatedBuildInputs = [
anyio anyio

View file

@ -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