python3Packages.selectors2: fix mapping import

The library is otherwise unmaintained and should be removed once
something larger comes up.
main
Martin Weinelt 2 years ago committed by Jonathan Ringer
parent c9d25b2a2f
commit 1c701dd368
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 4
      pkgs/development/python-modules/selectors2/default.nix
  2. 14
      pkgs/development/python-modules/selectors2/mapping-import.patch

@ -10,6 +10,10 @@ buildPythonPackage rec {
sha256 = "1f1bbaac203a23fbc851dc1b5a6e92c50698cc8cefa5873eb5b89eef53d1d82b";
};
patches = [
./mapping-import.patch
];
checkInputs = [ nose psutil mock ];
checkPhase = ''

@ -0,0 +1,14 @@
diff --git a/selectors2.py b/selectors2.py
index 1625a30..c4a1231 100644
--- a/selectors2.py
+++ b/selectors2.py
@@ -22,7 +22,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-from collections import namedtuple, Mapping
+from collections import namedtuple
+from collections.abc import Mapping
import errno
import math
import platform
Loading…
Cancel
Save