Unverified Commit 997b8088 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python312Packages.howdoi: remove broken mark on darwin and remove one bad test case (#335138)

parents f0fa9001 62a30ca4
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  appdirs,
  buildPythonPackage,
@@ -7,6 +6,7 @@
  colorama,
  cssselect,
  fetchFromGitHub,
  fetchpatch,
  keep,
  lxml,
  pygments,
@@ -31,6 +31,16 @@ buildPythonPackage rec {
    hash = "sha256-u0k+h7Sp2t/JUnfPqRzDpEA+vNXB7CpyZ/SRvk+B9t0=";
  };

  patches = [
    # Bad test case fix: comparing hardcoded string to internet search result
    # PR merged: https://github.com/gleitz/howdoi/pull/497
    # Please remove on the next release
    (fetchpatch {
      url = "https://github.com/gleitz/howdoi/commit/7d24e9e1c87811a6e66d60f504381383cf1ac3fd.patch";
      sha256 = "sha256-AFQMnMEijaExqiimbNaVeIRmZJ4Yj0nGUOEjfsvBLh8=";
    })
  ];

  propagatedBuildInputs = [
    appdirs
    cachelib
@@ -55,7 +65,6 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "howdoi" ];

  meta = with lib; {
    broken = stdenv.isDarwin;
    changelog = "https://github.com/gleitz/howdoi/blob/v${version}/CHANGES.txt";
    description = "Instant coding answers via the command line";
    homepage = "https://github.com/gleitz/howdoi";