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";
2019-12-29 09:28:06 +00:00
version = "4.8.2";
src = fetchPypi {
inherit pname version;
2019-12-29 09:28:06 +00:00
sha256 = "05fd825eb01c290877657a56df4c6e4c311b3965bda790c613a3d6fb01a5462a";
};
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 ];
};
}