Commit 328cf007 authored by Leandro Reina's avatar Leandro Reina
Browse files

python312Packages.pkg-about: 1.0.8 -> 1.1.5

Also enable the new tests
parent 3f69783a
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -7,26 +7,26 @@
, setuptools
, packaging
, tomli
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pkg-about";
  version = "1.0.8";
  version = "1.1.5";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "pkg_about";
    inherit version;
    inherit pname version;
    extension = "zip";
    hash = "sha256-mb43XbKypgilagXLW33kP8wXxioNsfLtl6AEnOI1WlA=";
    hash = "sha256-B5u+iJuqHtv4BlGhdWqYxBfS89/S01OXmLyDOQraHfo=";
  };

  # tox is listed in build requirements but not actually used to build
  # keeping it as a requirement breaks the build unnecessarily
  postPatch = ''
    sed  -i "/requires/s/, 'tox>=3.25.1'//"  pyproject.toml
    sed -i "/requires/s/, 'tox>=[^']*'//" pyproject.toml
  '';

  nativeBuildInputs = [
@@ -42,8 +42,9 @@ buildPythonPackage rec {
    tomli
  ];

  # Module has no tests
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pkg_about"