1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "elementpath";
9 version = "2.4.0";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.6";
13
14 src = fetchFromGitHub {
15 owner = "sissaschool";
16 repo = "elementpath";
17 rev = "v${version}";
18 sha256 = "1f3w5zyvrkl4gab81i5z9b41ybs54b37znj5r7hrcf25x8hrqgvv";
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 license = licenses.mit;
32 maintainers = with maintainers; [ jonringer ];
33 };
34}