python312Packages.wsnsimpy: drop (#395221)

This commit is contained in:
Pol Dellaiera
2025-04-02 09:08:44 +02:00
committed by GitHub
4 changed files with 28 additions and 50 deletions

View File

@@ -1,12 +1,14 @@
{
buildPythonPackage,
fetchPypi,
isPy27,
lib,
stdenv,
buildPythonPackage,
isPy27,
fetchPypi,
setuptools,
setuptools-scm,
py,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
@@ -21,22 +23,40 @@ buildPythonPackage rec {
hash = "sha256-BtB1CniEsR4OjiDOC8fG1O1fF0PUVmlTQNE/3/lQAaY=";
};
nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];
pythonImportsCheck = [ "simpy" ];
nativeCheckInputs = [
py
pytestCheckHook
];
meta = with lib; {
pytestFlags = [
"tests"
];
disabledTests =
lib.optionals (pythonAtLeast "3.13") [
# Failing on python >= 3.13
# FAILED tests/test_exceptions.py::test_exception_chaining - AssertionError: Traceback mismatch
"test_exception_chaining"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"test_rt"
"test_rt_multiple_call"
"test_rt_slow_sim_no_error"
];
meta = {
downloadPage = "https://github.com/simpx/simpy";
homepage = "https://simpy.readthedocs.io/en/${version}/";
description = "Process-based discrete-event simulation framework based on standard Python";
license = [ licenses.mit ];
maintainers = with maintainers; [
license = [ lib.licenses.mit ];
maintainers = with lib.maintainers; [
dmrauh
shlevy
];

View File

@@ -1,41 +0,0 @@
{
buildPythonPackage,
fetchPypi,
isPy27,
lib,
setuptools,
simpy,
tkinter,
# GUI-based visualization of the simulation is optional
enableVisualization ? true,
}:
buildPythonPackage rec {
pname = "wsnsimpy";
version = "0.2.5";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1b7fdqwc2v9alfwf2fr0aqr8rf2pb5lpm4anpilmvrh2lhjar4i2";
};
propagatedBuildInputs = [
setuptools
simpy
] ++ lib.optional enableVisualization tkinter;
# No test cases are included, thus unittest tries to run the examples, which
# fail because no DISPLAYs are available.
doCheck = false;
pythonImportsCheck = [ "wsnsimpy" ] ++ lib.optional enableVisualization "wsnsimpy.wsnsimpy_tk";
meta = with lib; {
description = "SimPy-based WSN Simulator";
homepage = "https://pypi.org/project/wsnsimpy/";
license = licenses.bsd2;
maintainers = with maintainers; [ dmrauh ];
};
}

View File

@@ -793,6 +793,7 @@ mapAliases ({
webhelpers = throw "webhelpers has been removed because it is unmaintained and upstream is gone"; # added 2024-07-27
websocket_client = websocket-client; # added 2021-06-15
word2vec = throw "word2vec has been removed because it is abandoned"; # added 2023-05-22
wsnsimpy = throw "wsnsimpy has been removed, it was unmaintained and no more compatible with Python 3.12"; # added 2025-04-01
wxPython_4_0 = throw "wxPython_4_0 has been removed, use wxpython instead"; # added 2023-03-19
wxPython_4_1 = throw "wxPython_4_1 has been removed, use wxpython instead"; # added 2023-03-19
wxPython_4_2 = wxpython; # added 2024-01-07

View File

@@ -18818,8 +18818,6 @@ self: super: with self; {
wsme = callPackage ../development/python-modules/wsme { };
wsnsimpy = callPackage ../development/python-modules/wsnsimpy { };
wsproto = callPackage ../development/python-modules/wsproto { };
wtf-peewee = callPackage ../development/python-modules/wtf-peewee { };