summary refs log blame commit diff
path: root/pkgs/development/python-modules/elementpath/default.nix
blob: 19bb37e448a4b0320b91b176cbce6320c04bf595 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                     

                        
                    
                        
                                                     




                          
                                                                    




                                                                           
                                         
 






                                                                                 
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }:

buildPythonPackage rec {
  version = "2.3.1";
  pname = "elementpath";
  disabled = isPy27; # uses incompatible class syntax

  src = fetchFromGitHub {
    owner = "sissaschool";
    repo = "elementpath";
    rev = "v${version}";
    sha256 = "1imjilhmbw08469irlbr3am5zksbg327n7mznxfixrigq9d65qx6";
  };

  # 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 ];
  };
}