Skip to content

Commit

Permalink
python3Packages.listparser: init at 0.20
Browse files Browse the repository at this point in the history
this package was previously available via `gnome-feeds.passthru.listparser`
but was removed when no longer needed by gnome-feeds.
  • Loading branch information
uninsane committed Jun 24, 2024
1 parent 4cc2ade commit e1b7ca4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/development/python-modules/listparser/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
lxml,
nix-update-script,
poetry-core,
pytestCheckHook,
requests,
}:

buildPythonPackage rec {
pname = "listparser";
version = "0.20";

format = "pyproject";

src = fetchFromGitHub {
owner = "kurtmckee";
repo = "listparser";
rev = "v${version}";
hash = "sha256-eg9TrjDgvHsYt/0JQ7MK/uGc3KK3uGr3jRxzG0FlySg=";
};

nativeBuildInputs = [
poetry-core
];

nativeCheckInputs = [
pytestCheckHook
];

propagatedBuildInputs = [
requests
lxml
];

passthru.updateScript = nix-update-script { };

meta = with lib; {
description = "Parse OPML subscription lists in Python";
homepage = "https://github.com/kurtmckee/listparser";
license = licenses.mit;
maintainers = [ maintainers.colinsane ];
platforms = platforms.linux;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6943,6 +6943,8 @@ self: super: with self; {
python3 = python;
});

listparser = callPackage ../development/python-modules/listparser { };

lit = callPackage ../development/python-modules/lit { };

litellm = callPackage ../development/python-modules/litellm { };
Expand Down

0 comments on commit e1b7ca4

Please sign in to comment.