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