2019-02-14 07:37:11 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, soupsieve, pytest, python }:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "beautifulsoup4";
|
2020-06-06 07:46:59 +01:00
|
|
|
version = "4.9.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:46:59 +01:00
|
|
|
sha256 = "73cc4d115b96f79c7d77c1c7f7a0a8d4c57860d1041df407dd1aae7f07a77fd7";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2019-02-14 07:37:11 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-09-05 10:16:41 +01:00
|
|
|
checkPhase = ''
|
2019-02-14 07:37:11 +00:00
|
|
|
py.test $out/${python.sitePackages}/bs4/tests
|
2017-09-05 10:16:41 +01:00
|
|
|
'';
|
|
|
|
|
2019-02-14 07:37:11 +00:00
|
|
|
propagatedBuildInputs = [ soupsieve ];
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "HTML and XML parser";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|