2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytest,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3to2";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "3to2";
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 = {
|
|
|
|
homepage = "https://bitbucket.org/amentajo/lib3to2";
|
|
|
|
description = "Refactors valid 3.x syntax into valid 2.x syntax, if a syntactical conversion is possible";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "3to2";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ mt-caret ];
|
|
|
|
};
|
|
|
|
}
|