1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "protego"; 12 version = "0.3.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit version; 19 pname = "Protego"; 20 hash = "sha256-6UQw0NJcu/I5vISdhsXlRPveUx/Mz6BZlTx9o0ShcSw="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "protego" ]; 28 29 meta = with lib; { 30 description = "Module to parse robots.txt files with support for modern conventions"; 31 homepage = "https://github.com/scrapy/protego"; 32 changelog = "https://github.com/scrapy/protego/blob/${version}/CHANGELOG.rst"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ ]; 35 }; 36}