1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/elementpath/default.nix
2020-02-12 17:53:35 -08:00

33 lines
902 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
buildPythonPackage rec {
version = "1.4.1";
pname = "elementpath";
disabled = isPy27; # uses incompatible class syntax
src = fetchFromGitHub {
owner = "sissaschool";
repo = "elementpath";
rev = "v${version}";
sha256 = "1xgz4aml3g3q2011wxarg25xl3g9zny313p52w9abyy16f40vjy0";
};
# avoid circular dependency with xmlschema which directly depends on this
doCheck = false;
pythonImportsCheck = [
"elementpath.xpath1_parser"
"elementpath.xpath2_parser"
"elementpath.xpath2_functions"
"elementpath.xpath_context"
"elementpath.xpath_selectors"
];
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 ];
};
}