Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 25 lines 645 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, soupsieve, pytest, python }: 2 3buildPythonPackage rec { 4 pname = "beautifulsoup4"; 5 version = "4.9.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "73cc4d115b96f79c7d77c1c7f7a0a8d4c57860d1041df407dd1aae7f07a77fd7"; 10 }; 11 12 checkInputs = [ pytest ]; 13 checkPhase = '' 14 py.test $out/${python.sitePackages}/bs4/tests 15 ''; 16 17 propagatedBuildInputs = [ soupsieve ]; 18 19 meta = with stdenv.lib; { 20 homepage = "http://crummy.com/software/BeautifulSoup/bs4/"; 21 description = "HTML and XML parser"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ domenkozar ]; 24 }; 25}