python311Packages.podcastparser: 0.6.5 -> 0.6.10

This commit is contained in:
Fabian Affolter 2023-10-03 09:34:54 +02:00
parent 49dd200502
commit c5085c69d9

View file

@ -1,26 +1,41 @@
{ lib, buildPythonPackage, fetchFromGitHub, nose }: { lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "podcastparser"; pname = "podcastparser";
version = "0.6.5"; version = "0.6.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gpodder"; owner = "gpodder";
repo = "podcastparser"; repo = "podcastparser";
rev = version; rev = "refs/tags/${version}";
sha256 = "1s83iq0mxcikxv6gi003iyavl1ai3siw1d7arijh0g28l0fff23a"; hash = "sha256-P9wVyxTO0nz/DfuBhCE+VjhH1uYx4jBd30Ca26yBzbo=";
}; };
nativeCheckInputs = [ nose ]; postPatch = ''
substituteInPlace pytest.ini \
checkPhase = '' --replace "--cov=podcastparser --cov-report html --doctest-modules" ""
nosetests test_*.py
''; '';
meta = { nativeCheckInputs = [
description = "podcastparser is a simple, fast and efficient podcast parser written in Python."; pytestCheckHook
];
pythonImportsCheck = [
"podcastparser"
];
meta = with lib; {
description = "Module to parse podcasts";
homepage = "http://gpodder.org/podcastparser/"; homepage = "http://gpodder.org/podcastparser/";
license = lib.licenses.bsd2; license = licenses.bsd2;
maintainers = with lib.maintainers; [ mic92 ]; maintainers = with maintainers; [ mic92 ];
}; };
} }