Unverified Commit 46850407 authored by melvyn's avatar melvyn
Browse files

python3Packages.uncompyle6: 3.9.1 -> 3.9.2

parent bb12bc9c
Loading
Loading
Loading
Loading
+11 −17
Original line number Diff line number Diff line
@@ -6,19 +6,19 @@
  spark-parser,
  xdis,
  nose,
  pytest,
  pytestCheckHook,
  hypothesis,
  six,
}:

buildPythonPackage rec {
  pname = "uncompyle6";
  version = "3.9.1";
  version = "3.9.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-xFHDjrPFzINOuLip5uCwzzIm5NlNCP0nbdA/6RWO2yc=";
    hash = "sha256-b3CYD/4IpksRS2hxgy/QLYbJkDX4l2qPH4Eh2tb8pCU=";
  };

  propagatedBuildInputs = [
@@ -28,25 +28,19 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    nose
    pytest
    pytestCheckHook
    hypothesis
    six
  ];

  # Tests attempt to decompile bytecode of the python version
  # that is running the tests - this does not work for versions
  # above 3.8, but they decompile older bytecode fine
  # No tests are provided for versions past 3.8,
  # as the project only targets bytecode of versions <= 3.8
  doCheck = pythonOlder "3.9";
  # six import errors (yet it is supplied...)
  checkPhase = ''
    runHook preCheck
    pytest ./pytest --ignore=pytest/test_function_call.py
    runHook postCheck
  '';

  meta = with lib; {
    description = "Python cross-version byte-code deparser";
    homepage = "https://github.com/rocky/python-uncompyle6/";
    license = licenses.gpl3;
  meta = {
    description = "A bytecode decompiler for Python versions 3.8 and below";
    homepage = "https://github.com/rocky/python-uncompyle6";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ melvyn2 ];
  };
}