Skip to content

Commit

Permalink
feedparser: keep 5.2.1 available for python-2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorman committed Dec 9, 2020
1 parent db99b25 commit 74742be
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkgs/applications/networking/feedreaders/rawdog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ python2Packages.buildPythonApplication rec {

propagatedBuildInputs = with python2Packages; [ feedparser ];

# Requested by @SuperSandro20001
pythonImportsCheck = [ "feedparser" ];
doCheck = false;

namePrefix = "";

meta = with stdenv.lib; {
Expand Down
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/feedparser/5.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
pname = "feedparser";
version = "5.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "1ycva69bqssalhqg45rbrfipz3l6hmycszy26k0351fhq990c0xx";
};

# lots of networking failures
doCheck = false;

meta = with stdenv.lib; {
homepage = "https://github.com/kurtmckee/feedparser";
description = "Universal feed parser";
license = licenses.bsd2;
maintainers = with maintainers; [ domenkozar ];
};
}
5 changes: 4 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,10 @@ in {

feedgenerator = callPackage ../development/python-modules/feedgenerator { inherit (pkgs) glibcLocales; };

feedparser = callPackage ../development/python-modules/feedparser { };
feedparser = if isPy3k then
callPackage ../development/python-modules/feedparser { }
else
callPackage ../development/python-modules/feedparser/5.nix { };

fenics = callPackage ../development/libraries/science/math/fenics {
inherit (pkgs) pkg-config;
Expand Down

0 comments on commit 74742be

Please sign in to comment.