diff --git a/pkgs/development/python-modules/feedparser/default.nix b/pkgs/development/python-modules/feedparser/default.nix new file mode 100644 index 000000000000..ac91fe51d899 --- /dev/null +++ b/pkgs/development/python-modules/feedparser/default.nix @@ -0,0 +1,25 @@ +{ 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 = http://code.google.com/p/feedparser/; + description = "Universal feed parser"; + license = licenses.bsd2; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fefd8d0bd3f0..150b9a65d5f6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2372,24 +2372,7 @@ in { inherit (pkgs) glibcLocales; }; - feedparser = buildPythonPackage (rec { - name = "feedparser-5.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/f/feedparser/${name}.tar.gz"; - sha256 = "1ycva69bqssalhqg45rbrfipz3l6hmycszy26k0351fhq990c0xx"; - }; - - # lots of networking failures - doCheck = false; - - meta = { - homepage = http://code.google.com/p/feedparser/; - description = "Universal feed parser"; - license = licenses.bsd2; - maintainers = with maintainers; [ domenkozar ]; - }; - }); + feedparser = callPackage ../development/python-modules/feedparser { }; pyfribidi = buildPythonPackage rec { version = "0.11.0";