2017-05-16 07:40:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-05-25 03:08:31 +01:00
|
|
|
, fetchPypi
|
2017-05-16 07:40:36 +01:00
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-03-29 08:41:09 +01:00
|
|
|
pname = "py3to2";
|
2017-05-16 07:40:36 +01:00
|
|
|
version = "1.1.1";
|
|
|
|
|
2017-05-25 03:08:31 +01:00
|
|
|
src = fetchPypi {
|
2020-03-29 08:41:09 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "3to2";
|
2017-05-25 03:08:31 +01:00
|
|
|
extension = "zip";
|
2017-05-16 07:40:36 +01:00
|
|
|
sha256 = "fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test lib3to2/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Test failing due to upstream issue (https://bitbucket.org/amentajo/lib3to2/issues/50/testsuite-fails-with-new-python-35)
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bitbucket.org/amentajo/lib3to2";
|
2017-05-16 07:40:36 +01:00
|
|
|
description = "Refactors valid 3.x syntax into valid 2.x syntax, if a syntactical conversion is possible";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ mt-caret ];
|
|
|
|
};
|
|
|
|
}
|