nixpkgs/pkgs/development/python-modules/beautifulsoup4/default.nix

26 lines
645 B
Nix
Raw Normal View History

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