1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "podcastparser";
11 version = "0.6.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "gpodder";
18 repo = "podcastparser";
19 tag = version;
20 hash = "sha256-P9wVyxTO0nz/DfuBhCE+VjhH1uYx4jBd30Ca26yBzbo=";
21 };
22
23 postPatch = ''
24 substituteInPlace pytest.ini \
25 --replace "--cov=podcastparser --cov-report html --doctest-modules" ""
26 '';
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "podcastparser" ];
31
32 meta = with lib; {
33 description = "Module to parse podcasts";
34 homepage = "http://gpodder.org/podcastparser/";
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ mic92 ];
37 };
38}