Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 679 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, nose, mercurial, isPy3k }: 2 3buildPythonPackage rec { 4 pname = "python-hglib"; 5 version = "2.4"; 6 name = "${pname}-${version}"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0qll9cc9ndqizby00gxdcf6d0cysdhjkr8670a4ffrk55bcnwgb9"; 11 }; 12 13 checkInputs = [ nose ]; 14 buildInputs = [ mercurial ]; 15 16 checkPhase = ''python test.py''; 17 doCheck = if isPy3k then false else true; 18 19 meta = with stdenv.lib; { 20 description = "Mercurial Python library"; 21 homepage = "http://selenic.com/repo/python-hglib"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ dfoxfranke ]; 24 platforms = platforms.all; 25 }; 26}