1{ stdenv, buildPythonPackage, fetchPypi, nose }:
2
3buildPythonPackage rec {
4 name = "${pname}-${version}";
5 pname = "beautifulsoup4";
6 version = "4.6.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "12cf0ygpz9srpfh9gx2f9ba0swa1rzypv3sm4r0hmjyw6b4nm2w0";
11 };
12
13 buildInputs = [ nose ];
14 checkPhase = ''
15 nosetests build
16 '';
17
18 meta = with stdenv.lib; {
19 homepage = http://crummy.com/software/BeautifulSoup/bs4/;
20 description = "HTML and XML parser";
21 license = licenses.mit;
22 maintainers = with maintainers; [ domenkozar ];
23 };
24}