1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "elementpath";
9 version = "2.5.3";
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-+NCsWPt5yMXe+GR9nEBU7byYhKrH/6xghQioj9AOGm4=";
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}