2020-01-03 18:54:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
|
2019-08-01 21:22:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-01-31 06:21:50 +00:00
|
|
|
version = "2.1.3";
|
2019-08-01 21:22:09 +01:00
|
|
|
pname = "elementpath";
|
2020-01-03 18:54:00 +00:00
|
|
|
disabled = isPy27; # uses incompatible class syntax
|
2019-08-01 21:22:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sissaschool";
|
|
|
|
repo = "elementpath";
|
|
|
|
rev = "v${version}";
|
2021-01-31 06:21:50 +00:00
|
|
|
sha256 = "062l1dqbaz1pab3qz6x5zmja8m8gw1bxgfl4kx91gdh0zsiakg8j";
|
2019-08-01 21:22:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid circular dependency with xmlschema which directly depends on this
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-29 15:35:16 +01:00
|
|
|
pythonImportsCheck = [ "elementpath" ];
|
2020-01-03 18:54:00 +00:00
|
|
|
|
2019-08-01 21:22:09 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|