1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "Protego"; 10 version = "0.1.16"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "a682771bc7b51b2ff41466460896c1a5a653f9a1e71639ef365a72e66d8734b4"; 15 }; 16 propagatedBuildInputs = [ six ]; 17 18 checkInputs = [ pytest ]; 19 20 checkPhase = '' 21 pytest tests 22 ''; 23 24 meta = with lib; { 25 description = "A pure-Python robots.txt parser with support for modern conventions"; 26 homepage = "https://github.com/scrapy/protego"; 27 license = licenses.bsd3; 28 maintainers = [ maintainers.marsam ]; 29 }; 30}