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