2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
flask,
|
|
|
|
mutagen,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "podcats";
|
|
|
|
version = "0.5.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jakubroztocil";
|
|
|
|
repo = "podcats";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0zjdgry5n209rv19kj9yaxy7c7zq5gxr488izrgs4sc75vdzz8xc";
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace podcats.py \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail 'debug=True' 'debug=True, use_reloader=False'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-06-05 15:53:02 +00:00
|
|
|
flask
|
|
|
|
mutagen
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Application that generates RSS feeds for podcast episodes from local audio files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "podcats";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jakubroztocil/podcats";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|