python3Packages.listparser: 0.18 -> 0.20

This commit is contained in:
2024-06-24 12:48:43 +00:00
parent a06481fbef
commit 7955d90f8d

View File

@@ -2,35 +2,44 @@
buildPythonPackage,
fetchFromGitHub,
lib,
lxml,
nix-update-script,
poetry-core,
python3,
pytestCheckHook,
requests,
six,
}:
buildPythonPackage rec {
pname = "listparser";
version = "0.18";
version = "0.20";
format = "pyproject";
src = fetchFromGitHub {
owner = "kurtmckee";
repo = "listparser";
rev = "v${version}";
hash = "sha256-xT2RwoELxO96F0D0XHM+4yYymPi7ysLh+8SaexKZfaI=";
hash = "sha256-eg9TrjDgvHsYt/0JQ7MK/uGc3KK3uGr3jRxzG0FlySg=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
requests
six
lxml
];
checkPhase = ''
runHook preCheck
${python3.interpreter} lptest.py
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Parser for subscription lists";
description = "Parse OPML subscription lists in Python";
homepage = "https://github.com/kurtmckee/listparser";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.colinsane ];