Merge pull request #330024 from Sigmanificient/selectors2
python312Packages.selectors2: drop
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
nose,
|
||||
psutil,
|
||||
mock,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.2";
|
||||
format = "setuptools";
|
||||
pname = "selectors2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1f1bbaac203a23fbc851dc1b5a6e92c50698cc8cefa5873eb5b89eef53d1d82b";
|
||||
};
|
||||
|
||||
patches = [ ./mapping-import.patch ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
nose
|
||||
psutil
|
||||
mock
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
# https://github.com/NixOS/nixpkgs/pull/46186#issuecomment-419450064
|
||||
# Trick to disable certain tests that depend on timing which
|
||||
# will always fail on hydra
|
||||
export TRAVIS=""
|
||||
nosetests tests/test_selectors2.py \
|
||||
--exclude=test_above_fd_setsize
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.github.com/SethMichaelLarson/selectors2";
|
||||
description = "Back-ported, durable, and portable selectors";
|
||||
license = licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -522,6 +522,7 @@ mapAliases ({
|
||||
scikitimage = scikit-image; # added 2023-05-14
|
||||
scikitlearn = scikit-learn; # added 2021-07-21
|
||||
scikits-samplerate = throw "scikits-samplerate has been removed, it was unsed and unmaintained since 2015"; # added 2024-05-23
|
||||
selectors2 = throw "selectors2 has been removed: archived by upstream."; # added 2024-07-27
|
||||
selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
|
||||
sequoia = throw "python3Packages.sequoia was replaced by pysequoia - built from a dedicated repository, with a new API."; # added 2023-06-24
|
||||
setuptools_dso = setuptools-dso; # added 2024-03-03
|
||||
|
||||
@@ -14056,8 +14056,6 @@ self: super: with self; {
|
||||
inherit (pkgs) cmake ninja;
|
||||
};
|
||||
|
||||
selectors2 = callPackage ../development/python-modules/selectors2 { };
|
||||
|
||||
selenium = callPackage ../development/python-modules/selenium { };
|
||||
|
||||
selenium-wire = callPackage ../development/python-modules/selenium-wire { };
|
||||
|
||||
Reference in New Issue
Block a user