Merge pull request #51986 from ivan/add-grab-site

grab-site: init at 2.1.11
This commit is contained in:
Alexey Shmalko
2018-12-15 03:33:05 +02:00
committed by GitHub
6 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, re2
, pytest
}:
buildPythonPackage rec {
pname = "fb-re2";
version = "1.0.6";
src = fetchPypi {
inherit pname version;
sha256 = "0wd97qdcafcca90s6692g2dmzl5n6cdvm20vn7pmag3l9gvx395c";
};
buildInputs = [ re2 ];
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = {
description = "Python wrapper for Google's RE2";
homepage = https://github.com/facebook/pyre2;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ivan ];
};
}

View File

@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, chardet
, dnspython
, html5-parser
, lxml
, namedlist
, sqlalchemy
, tornado_4
, Yapsy
}:
buildPythonPackage rec {
pname = "ludios_wpull";
version = "3.0.7";
disabled = !isPy3k;
src = fetchFromGitHub {
rev = "${version}";
owner = "ludios";
repo = "wpull";
sha256 = "1j96avm0ynbazypzp766wh26n4qc73y7wgsiqfrdfl6x7rx20wgf";
};
propagatedBuildInputs = [ chardet dnspython html5-parser lxml namedlist sqlalchemy tornado_4 Yapsy ];
# Test suite has tests that fail on all platforms
doCheck = false;
meta = {
description = "Web crawler; fork of wpull used by grab-site";
homepage = https://github.com/ludios/wpull;
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ ivan ];
};
}

View File

@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "namedlist";
version = "1.7";
src = fetchPypi {
inherit pname version;
sha256 = "11n9c4a5ak9971awkf1g92m6mcmiprhrw98ik2cmjsqxmz73j2qr";
};
# Test file has a `unittest.main()` at the bottom that fails the tests;
# py.test can run the tests without it.
postPatch = ''
substituteInPlace test/test_namedlist.py --replace "unittest.main()" ""
'';
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = {
description = "Similar to namedtuple, but instances are mutable";
homepage = https://bitbucket.org/ericvsmith/namedlist;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ivan ];
};
}