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