Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 25 lines 635 B view raw
1{ lib, buildPythonPackage, fetchPypi, soupsieve, pytest, python }: 2 3buildPythonPackage rec { 4 pname = "beautifulsoup4"; 5 version = "4.9.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "84729e322ad1d5b4d25f805bfa05b902dd96450f43842c4e99067d5e1369eb25"; 10 }; 11 12 checkInputs = [ pytest ]; 13 checkPhase = '' 14 py.test $out/${python.sitePackages}/bs4/tests 15 ''; 16 17 propagatedBuildInputs = [ soupsieve ]; 18 19 meta = with 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}