Unverified Commit 1cda6e55 authored by nixpkgs-ci[bot]'s avatar nixpkgs-ci[bot] Committed by GitHub
Browse files

buku: 5.0 -> 5.1 (#476655)

parents 5907a68c b062c5f1
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ let
in
with python3.pkgs;
buildPythonApplication rec {
  version = "5.0";
  version = "5.1";
  pname = "buku";
  pyproject = true;

@@ -31,7 +31,7 @@ buildPythonApplication rec {
    owner = "jarun";
    repo = "buku";
    tag = "v${version}";
    sha256 = "sha256-b3j3WLMXl4sXZpIObC+F7RRpo07cwJpAK7lQ7+yIzro=";
    sha256 = "sha256-7ezAhKqykTpnfyK4+BLr/7+GBH720GxnEnkoJ/AIL08=";
  };

  nativeBuildInputs = [
@@ -60,16 +60,7 @@ buildPythonApplication rec {
  ]
  ++ lib.optionals withServer serverRequire;

  preCheck = ''
    # Disables a test which requires internet
    substituteInPlace tests/test_bukuDb.py \
      --replace "@pytest.mark.slowtest" "@unittest.skip('skipping')" \
      --replace "self.assertEqual(shorturl, \"http://tny.im/yt\")" "" \
      --replace "self.assertEqual(url, \"https://www.google.com\")" ""
    substituteInPlace setup.py \
      --replace mypy-extensions==0.4.1 mypy-extensions>=0.4.1
  ''
  + lib.optionalString (!withServer) ''
  preCheck = lib.optionalString (!withServer) ''
    rm tests/test_{server,views}.py
  '';