mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
python3Packages.feedparser: fix build, run tests
This commit is contained in:
parent
d0e31655f9
commit
fcbd213d38
1 changed files with 8 additions and 2 deletions
|
@ -1,19 +1,25 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, sgmllib3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "feedparser";
|
pname = "feedparser";
|
||||||
version = "6.0.2";
|
version = "6.0.2";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074";
|
sha256 = "1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074";
|
||||||
};
|
};
|
||||||
|
|
||||||
# lots of networking failures
|
propagatedBuildInputs = [ sgmllib3k ];
|
||||||
doCheck = false;
|
|
||||||
|
checkPhase = ''
|
||||||
|
python -Wd tests/runtests.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/kurtmckee/feedparser";
|
homepage = "https://github.com/kurtmckee/feedparser";
|
||||||
|
|
Loading…
Reference in a new issue