depot/third_party/nixpkgs/pkgs/development/python-modules/podcastparser/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
836 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "podcastparser";
version = "0.6.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gpodder";
repo = "podcastparser";
rev = "refs/tags/${version}";
hash = "sha256-P9wVyxTO0nz/DfuBhCE+VjhH1uYx4jBd30Ca26yBzbo=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=podcastparser --cov-report html --doctest-modules" ""
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"podcastparser"
];
meta = with lib; {
description = "Module to parse podcasts";
homepage = "http://gpodder.org/podcastparser/";
license = licenses.bsd2;
maintainers = with maintainers; [ mic92 ];
};
}