1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "elementpath"; 9 version = "4.1.5"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "sissaschool"; 16 repo = "elementpath"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-5K2xcnTo3/A6/pCxQn5qZqni7C64p/yNAWWJlhQeKe4="; 19 }; 20 21 # avoid circular dependency with xmlschema which directly depends on this 22 doCheck = false; 23 24 pythonImportsCheck = [ 25 "elementpath" 26 ]; 27 28 meta = with lib; { 29 description = "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"; 30 homepage = "https://github.com/sissaschool/elementpath"; 31 changelog = "https://github.com/sissaschool/elementpath/blob/v${version}/CHANGELOG.rst"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ jonringer ]; 34 }; 35}