2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "2.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "elementpath";
|
|
|
|
disabled = isPy27; # uses incompatible class syntax
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sissaschool";
|
|
|
|
repo = "elementpath";
|
|
|
|
rev = "v${version}";
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "17a0gcwmv87kikirgkgr305f5c7wz34hf7djssx4xbk9lfq9m2lg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid circular dependency with xmlschema which directly depends on this
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
pythonImportsCheck = [ "elementpath" ];
|
2020-04-24 23:36:52 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|