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