Unverified Commit 288d06ef authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.podcats: fix build failure; adopt (#501694)

parents 33696318 50936643
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  flask,
  humanize,
  lib,
  mutagen,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "podcats";
  version = "0.6.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jakubroztocil";
    owner = "jkbrzt";
    repo = "podcats";
    tag = version;
    sha256 = "sha256-1Jg9bR/3qMim3q5qVwUVbxeLNaXaCU6SplBUaRXeLpo=";
    tag = finalAttrs.version;
    hash = "sha256-1Jg9bR/3qMim3q5qVwUVbxeLNaXaCU6SplBUaRXeLpo=";
  };

  postPatch = ''
    substituteInPlace podcats.py \
      --replace-fail 'debug=True' 'debug=True, use_reloader=False'
  '';

  build-system = [ setuptools ];

  dependencies = [
    flask
    humanize
    mutagen
  ];

  pythonImportsCheck = [ "podcats" ];
  doCheck = false;

  meta = {
    description = "Application that generates RSS feeds for podcast episodes from local audio files";
    description = "Generates RSS feeds for podcast episodes from local audio files";
    mainProgram = "podcats";
    homepage = "https://github.com/jakubroztocil/podcats";
    homepage = "https://github.com/jkbrzt/podcats";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ drawbu ];
  };
}
})