Files
nixpkgs/pkgs/development/python-modules/elementpath/default.nix
T

27 lines
749 B
Nix
Raw Normal View History

2020-01-03 10:54:00 -08:00
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
2019-08-01 13:22:09 -07:00
buildPythonPackage rec {
version = "2.0.4";
2019-08-01 13:22:09 -07:00
pname = "elementpath";
2020-01-03 10:54:00 -08:00
disabled = isPy27; # uses incompatible class syntax
2019-08-01 13:22:09 -07:00
src = fetchFromGitHub {
owner = "sissaschool";
repo = "elementpath";
rev = "v${version}";
sha256 = "0812il5xn7cq0qa0vmkszrvprakfpyxmilk7s918l9kavdy4al8x";
2019-08-01 13:22:09 -07:00
};
# avoid circular dependency with xmlschema which directly depends on this
doCheck = false;
2020-09-29 07:35:16 -07:00
pythonImportsCheck = [ "elementpath" ];
2020-01-03 10:54:00 -08:00
2019-08-01 13:22:09 -07: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 ];
};
}