nixpkgs/pkgs/development/python-modules/elementpath/default.nix
2021-01-31 06:21:50 +00:00

27 lines
749 B
Nix

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