at master 804 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "protego"; 12 version = "0.5.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "scrapy"; 19 repo = "protego"; 20 tag = version; 21 hash = "sha256-70/DPap3FgLfh4ldYSve5Pt8o7gM1lME/OmRFaew/38="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "protego" ]; 29 30 meta = with lib; { 31 description = "Module to parse robots.txt files with support for modern conventions"; 32 homepage = "https://github.com/scrapy/protego"; 33 changelog = "https://github.com/scrapy/protego/blob/${src.tag}/CHANGELOG.rst"; 34 license = licenses.bsd3; 35 maintainers = [ ]; 36 }; 37}