Unverified Commit fdcc65bf authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

python312Packages.wsnsimpy: drop (#395221)

parents 3ef9c44a 765bf285
Loading
Loading
Loading
Loading
+26 −6
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  isPy27,
  lib,
  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
    ];
+0 −41
Original line number Diff line number Diff line
{
  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 ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -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
+0 −2
Original line number Diff line number Diff line
@@ -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 { };