1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
2
3buildPythonPackage rec {
4 version = "2.0.0";
5 pname = "elementpath";
6 disabled = isPy27; # uses incompatible class syntax
7
8 src = fetchFromGitHub {
9 owner = "sissaschool";
10 repo = "elementpath";
11 rev = "v${version}";
12 sha256 = "16kfbiy87qjl07y3iin8jdjhz8j28wlwnkwxq9a0752ipjjg869p";
13 };
14
15 # avoid circular dependency with xmlschema which directly depends on this
16 doCheck = false;
17
18 pythonImportsCheck = [
19 "elementpath.xpath1_parser"
20 "elementpath.xpath2_parser"
21 "elementpath.xpath2_functions"
22 "elementpath.xpath_context"
23 "elementpath.xpath_selectors"
24 ];
25
26 meta = with lib; {
27 description = "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml";
28 homepage = "https://github.com/sissaschool/elementpath";
29 license = licenses.mit;
30 maintainers = with maintainers; [ jonringer ];
31 };
32}