2020-01-03 19:54:00 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
|
2019-08-01 22:22:09 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-04-06 22:10:24 +02:00
|
|
|
version = "1.4.3";
|
2019-08-01 22:22:09 +02:00
|
|
|
pname = "elementpath";
|
2020-01-03 19:54:00 +01:00
|
|
|
disabled = isPy27; # uses incompatible class syntax
|
2019-08-01 22:22:09 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sissaschool";
|
|
|
|
repo = "elementpath";
|
|
|
|
rev = "v${version}";
|
2020-04-06 22:10:24 +02:00
|
|
|
sha256 = "18gqqdsrdlgwn93xnxy6ifxrk7ppaimijinflphxia2qcm8czkgf";
|
2019-08-01 22:22:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid circular dependency with xmlschema which directly depends on this
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-03 19:54:00 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"elementpath.xpath1_parser"
|
|
|
|
"elementpath.xpath2_parser"
|
|
|
|
"elementpath.xpath2_functions"
|
|
|
|
"elementpath.xpath_context"
|
|
|
|
"elementpath.xpath_selectors"
|
|
|
|
];
|
|
|
|
|
2019-08-01 22:22:09 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml";
|
|
|
|
homepage = "https://github.com/sissaschool/elementpath";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|