Unverified Commit 9b7e7d74 authored by Emily's avatar Emily Committed by natsukium
Browse files

python3Packages.nose3: drop

parent 5111b7af
Loading
Loading
Loading
Loading
+0 −42
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  coverage,
  fetchPypi,
  isPyPy,
  isPy311,
  python,
  pythonAtLeast,
  stdenv,
}:

buildPythonPackage rec {
  pname = "nose3";
  version = "1.3.8";
  format = "setuptools";

  # https://github.com/jayvdb/nose3/issues/5
  disabled = pythonAtLeast "3.12";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-diquIsrbiYsAudT0u7n46H+ODd5sSaiM0MVU9OWSW3Y=";
  };

  propagatedBuildInputs = [ coverage ];

  # PyPy hangs for unknwon reason
  # Darwin and python 3.11 fail at various assertions and I didn't find an easy way to find skip those tests
  doCheck = !isPyPy && !stdenv.isDarwin && !isPy311;

  checkPhase = ''
    ${python.pythonOnBuildForHost.interpreter} selftest.py
  '';

  meta = with lib; {
    description = "Fork of nose v1 not using lib2to3 for compatibility with Python 3";
    homepage = "https://github.com/jayvdb/nose3";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -327,6 +327,7 @@ mapAliases ({
  net2grid = gridnet; # add 2022-04-22
  nghttp2 = throw "in 1.52.0 removed deprecated python bindings."; # added 2023-06-08
  ninja-python = ninja; # add 2022-08-03
  nose3 = throw "nose3 has been removed since it is unmaintained and does not work with Python 3.12"; # added 2024-07-28
  nosejs = throw "nosejs has been removed since it has not been maintained for 15 years and there are no dependent packages"; # added 2024-05-21
  nose-cov = throw "nose-cov has been removed, it was archived and unmaintained since 2012"; # added 2024-05-21
  nosexcover = throw "nosexcover has been removed since it has not been maintained and there are no dependent packages"; # added 2024-05-21
+0 −2
Original line number Diff line number Diff line
@@ -9134,8 +9134,6 @@ self: super: with self; {
  nose2pytest = callPackage ../development/python-modules/nose2pytest { };
  nose3 = callPackage ../development/python-modules/nose3 { };
  notebook = callPackage ../development/python-modules/notebook { };
  notebook-shim = callPackage ../development/python-modules/notebook-shim { };