gpodder: lift listparser
out of gnome-feeds
it's being removed in https://github.com/NixOS/nixpkgs/pull/320801 i.e. when i next update nixpkgs
This commit is contained in:
@@ -10,9 +10,7 @@ let
|
|||||||
remove-extra = static-nix-shell.mkPython3Bin {
|
remove-extra = static-nix-shell.mkPython3Bin {
|
||||||
pname = "gpodder-remove-extra";
|
pname = "gpodder-remove-extra";
|
||||||
srcRoot = ./.;
|
srcRoot = ./.;
|
||||||
pyPkgs = _ps: {
|
pyPkgs = [ "listparser" ];
|
||||||
"gnome-feeds.listparser" = gnome-feeds.listparser;
|
|
||||||
};
|
|
||||||
pkgs = {
|
pkgs = {
|
||||||
# important for this to explicitly use `gpodder` here, because it may be overriden/different from the toplevel `gpodder`!
|
# important for this to explicitly use `gpodder` here, because it may be overriden/different from the toplevel `gpodder`!
|
||||||
inherit gpodder;
|
inherit gpodder;
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i python3 -p "python3.withPackages (ps: [ gnome-feeds.listparser ])" -p gpodder
|
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.listparser ])" -p gpodder
|
||||||
|
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
import listparser
|
import listparser
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
depthcharge-tools = callPackage ./depthcharge-tools { };
|
depthcharge-tools = callPackage ./depthcharge-tools { };
|
||||||
feedsearch-crawler = callPackage ./feedsearch-crawler { };
|
feedsearch-crawler = callPackage ./feedsearch-crawler { };
|
||||||
fastcluster = callPackage ./fastcluster { };
|
fastcluster = callPackage ./fastcluster { };
|
||||||
|
listparser = callPackage ./listparser { };
|
||||||
ols = callPackage ./ols { };
|
ols = callPackage ./ols { };
|
||||||
pa-dlna = callPackage ./pa-dlna { };
|
pa-dlna = callPackage ./pa-dlna { };
|
||||||
pyln-bolt7 = callPackage ./pyln-bolt7 { };
|
pyln-bolt7 = callPackage ./pyln-bolt7 { };
|
||||||
|
39
pkgs/python-packages/listparser/default.nix
Normal file
39
pkgs/python-packages/listparser/default.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchPypi,
|
||||||
|
lib,
|
||||||
|
python3,
|
||||||
|
requests,
|
||||||
|
six,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "listparser";
|
||||||
|
version = "0.18";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "listparser";
|
||||||
|
inherit version;
|
||||||
|
sha256 = "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
${python3.interpreter} lptest.py
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Parser for subscription lists";
|
||||||
|
homepage = "https://github.com/kurtmckee/listparser";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = [ maintainers.colinsane ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user