about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/feedparser/default.nix
blob: aeeb9b3e4960ac25ad1ac4f9bc8fccd2bf892b2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, sgmllib3k
}:

buildPythonPackage rec {
  pname = "feedparser";
  version = "6.0.2";
  disabled = isPy27;

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

  propagatedBuildInputs = [ sgmllib3k ];

  checkPhase = ''
    python -Wd tests/runtests.py
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/kurtmckee/feedparser";
    description = "Universal feed parser";
    license = licenses.bsd2;
    maintainers = with maintainers; [ domenkozar ];
  };

}