Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 766 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, substituteAll, python, nose, mercurial }: 2 3buildPythonPackage rec { 4 pname = "python-hglib"; 5 version = "2.6.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2"; 10 }; 11 12 patches = [ 13 (substituteAll { 14 src = ./hgpath.patch; 15 hg = "${mercurial}/bin/hg"; 16 }) 17 ]; 18 19 checkInputs = [ nose ]; 20 21 checkPhase = '' 22 ${python.interpreter} test.py --with-hg "${mercurial}/bin/hg" 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "Mercurial Python library"; 27 homepage = "http://selenic.com/repo/python-hglib"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ dfoxfranke ]; 30 platforms = platforms.all; 31 }; 32}