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