@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, nose, psutil, mock }:
3+
4+buildPythonPackage rec {
5+ version = "2.0.1";
6+ pname = "selectors2";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "81b77c4c6f607248b1d6bbdb5935403fef294b224b842a830bbfabb400c81884";
11+ };
12+
13+ checkInputs = [ nose psutil mock ];
14+
15+ checkPhase = ''
16+ # https://github.com/NixOS/nixpkgs/pull/46186#issuecomment-419450064
17+ # Trick to disable certain tests that depend on timing which
18+ # will always fail on hydra
19+ export TRAVIS=""
20+ nosetests tests/test_selectors2.py
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ homepage = https://www.github.com/SethMichaelLarson/selectors2;
25+ description = "Back-ported, durable, and portable selectors";
26+ license = licenses.mit;
27+ maintainers = [ maintainers.costrouc ];
28+ };
29+}