2021-09-08 10:36:23 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-08-01 22:22:09 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elementpath";
|
2022-03-05 07:40:29 +01:00
|
|
|
version = "2.5.0";
|
2021-11-20 09:55:13 +01:00
|
|
|
format = "setuptools";
|
2021-09-08 10:36:23 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-08-01 22:22:09 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sissaschool";
|
|
|
|
repo = "elementpath";
|
|
|
|
rev = "v${version}";
|
2022-03-05 07:40:29 +01:00
|
|
|
sha256 = "sha256-I2Vg0rpCFH1Z+N+JgtDv2se6lXsggzOsJn3Fj252aTQ=";
|
2019-08-01 22:22:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# avoid circular dependency with xmlschema which directly depends on this
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-20 09:55:13 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"elementpath"
|
|
|
|
];
|
2020-01-03 19:54:00 +01:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|