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