1{ lib 2, buildPythonPackage 3, fetchPypi 4, mercurial 5, nose 6}: 7 8buildPythonPackage rec { 9 pname = "python-hglib"; 10 version = "2.6.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "sha256-sYvR7VPJDuV9VxTWata7crZOkw1K7KmDCJLAi7KNpgg="; 15 }; 16 17 checkInputs = [ mercurial nose ]; 18 19 preCheck = '' 20 export HGTMP=$(mktemp -d) 21 export HGUSER=test 22 ''; 23 24 pythonImportsCheck = [ "hglib" ]; 25 26 meta = with lib; { 27 description = "Library with a fast, convenient interface to Mercurial. It uses Mercurials command server for communication with hg."; 28 homepage = "https://www.mercurial-scm.org/wiki/PythonHglibs"; 29 license = licenses.mit; 30 maintainers = []; 31 }; 32}