mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
portend: patch for black 19.10b0
This commit is contained in:
parent
a4f0c51c0c
commit
62e927d446
13
pkgs/development/python-modules/portend/black-19.10b0.patch
Normal file
13
pkgs/development/python-modules/portend/black-19.10b0.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/test_portend.py b/test_portend.py
|
||||||
|
index b2de8c2..3f90276 100644
|
||||||
|
--- a/test_portend.py
|
||||||
|
+++ b/test_portend.py
|
||||||
|
@@ -21,7 +21,7 @@ def socket_infos():
|
||||||
|
|
||||||
|
|
||||||
|
def id_for_info(info):
|
||||||
|
- af, = info[:1]
|
||||||
|
+ (af,) = info[:1]
|
||||||
|
return str(af)
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "19dc27bfb3c72471bd30a235a4d5fbefef8a7e31cab367744b5d87a205e7bfd9";
|
sha256 = "19dc27bfb3c72471bd30a235a4d5fbefef8a7e31cab367744b5d87a205e7bfd9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./black-19.10b0.patch ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pytest.ini --replace "--flake8" ""
|
substituteInPlace pytest.ini --replace "--flake8" ""
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue