1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
2
3buildPythonPackage rec {
4 version = "2.2.2";
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 = "sha256-n4zIn2WmFHaVaah2J0mz7Q6G4Ptb8Ms0dwQYbh0Ofcs=";
13 };
14
15 # avoid circular dependency with xmlschema which directly depends on this
16 doCheck = false;
17
18 pythonImportsCheck = [ "elementpath" ];
19
20 meta = with lib; {
21 description = "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml";
22 homepage = "https://github.com/sissaschool/elementpath";
23 license = licenses.mit;
24 maintainers = with maintainers; [ jonringer ];
25 };
26}