about summary refs log tree commit diff
path: root/pkgs/development/python-modules/podcats/default.nix
blob: f95fb719212f47a0a99706ab14379f4c7b32ea5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  flask,
  mutagen,
}:

buildPythonPackage rec {
  pname = "podcats";
  version = "0.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jakubroztocil";
    repo = "podcats";
    rev = "v${version}";
    sha256 = "0zjdgry5n209rv19kj9yaxy7c7zq5gxr488izrgs4sc75vdzz8xc";
  };

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

  build-system = [ setuptools ];

  dependencies = [
    flask
    mutagen
  ];

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