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


                         
                    


                          
                                                                                

    






                                 
                         
 


                                                                 








                                                      
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, python, nose, mercurial }:

buildPythonPackage rec {
  pname = "python-hglib";
  version = "2.6.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2";
  };

  patches = [
    (substituteAll {
      src = ./hgpath.patch;
      hg = "${mercurial}/bin/hg";
    })
  ];

  checkInputs = [ nose ];

  checkPhase = ''
    ${python.interpreter} test.py --with-hg "${mercurial}/bin/hg"
  '';

  meta = with stdenv.lib; {
    description = "Mercurial Python library";
    homepage = "http://selenic.com/repo/python-hglib";
    license = licenses.mit;
    maintainers = with maintainers; [ dfoxfranke ];
    platforms = platforms.all;
  };
}