1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lxml, 6 pytest-mypy-plugins, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "lxml-stubs"; 13 version = "0.5.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "lxml"; 18 repo = "lxml-stubs"; 19 tag = version; 20 hash = "sha256-OwaPnCr0vylhdAvMMUfGV6DjZEh7Q71pgMOt66urg5I="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ lxml ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 pytest-mypy-plugins 30 ]; 31 32 disabledTests = [ 33 # Output difference, https://github.com/lxml/lxml-stubs/issues/101 34 "etree_element_iterchildren" 35 ]; 36 37 meta = with lib; { 38 description = "Type stubs for the lxml package"; 39 homepage = "https://github.com/lxml/lxml-stubs"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ doronbehar ]; 42 }; 43}