Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "py3to2"; 10 version = "1.1.1"; 11 12 src = fetchPypi { 13 inherit version; 14 pname = "3to2"; 15 extension = "zip"; 16 sha256 = "fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c"; 17 }; 18 19 nativeCheckInputs = [ pytest ]; 20 21 checkPhase = '' 22 py.test lib3to2/tests 23 ''; 24 25 # Test failing due to upstream issue (https://bitbucket.org/amentajo/lib3to2/issues/50/testsuite-fails-with-new-python-35) 26 doCheck = false; 27 28 meta = { 29 homepage = "https://bitbucket.org/amentajo/lib3to2"; 30 description = "Refactors valid 3.x syntax into valid 2.x syntax, if a syntactical conversion is possible"; 31 mainProgram = "3to2"; 32 license = lib.licenses.asl20; 33 maintainers = with lib.maintainers; [ mt-caret ]; 34 }; 35}