Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 25 lines 643 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, soupsieve, pytest, python }: 2 3buildPythonPackage rec { 4 pname = "beautifulsoup4"; 5 version = "4.8.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "05fd825eb01c290877657a56df4c6e4c311b3965bda790c613a3d6fb01a5462a"; 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}