2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
spark-parser,
|
|
|
|
xdis,
|
|
|
|
nose,
|
2024-10-04 16:56:33 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
hypothesis,
|
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncompyle6";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "3.9.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-b3CYD/4IpksRS2hxgy/QLYbJkDX4l2qPH4Eh2tb8pCU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
spark-parser
|
|
|
|
xdis
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
2024-10-04 16:56:33 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
hypothesis
|
|
|
|
six
|
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
# No tests are provided for versions past 3.8,
|
|
|
|
# as the project only targets bytecode of versions <= 3.8
|
2024-05-15 15:35:15 +00:00
|
|
|
doCheck = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|