Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pbr 5, isPy3k 6}: 7 8buildPythonPackage (rec { 9 pname = "linecache2"; 10 version = "1.0.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"; 15 }; 16 17 buildInputs = [ pbr ]; 18 # circular dependencies for tests 19 doCheck = false; 20 21 meta = with stdenv.lib; { 22 description = "A backport of linecache to older supported Pythons"; 23 homepage = "https://github.com/testing-cabal/linecache2"; 24 license = licenses.psfl; 25 }; 26# TODO: move into main set, this was to avoid a rebuild 27} // stdenv.lib.optionalAttrs (!isPy3k ) { 28 # syntax error in tests. Tests are likely Python 3 only. 29 dontUsePythonRecompileBytecode = !isPy3k; 30})