feedparser: keep 5.2.1 available for python-2.7

This commit is contained in:
Michael Alan Dorman 2020-12-09 09:55:50 -05:00 committed by Jonathan Ringer
parent f37e7aeb8f
commit e3d8f4278a
3 changed files with 32 additions and 1 deletions

View file

@ -11,6 +11,10 @@ python2Packages.buildPythonApplication rec {
propagatedBuildInputs = with python2Packages; [ feedparser ];
# Requested by @SuperSandro20001
pythonImportsCheck = [ "feedparser" ];
doCheck = false;
namePrefix = "";
meta = with stdenv.lib; {

View file

@ -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 ];
};
}

View file

@ -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;