1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 spark-parser,
7 xdis,
8 pytestCheckHook,
9 hypothesis,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "uncompyle6";
15 version = "3.9.2";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-b3CYD/4IpksRS2hxgy/QLYbJkDX4l2qPH4Eh2tb8pCU=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 spark-parser
27 xdis
28 ];
29
30 pythonRelaxDeps = [ "spark-parser" ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 hypothesis
35 six
36 ];
37
38 # No tests are provided for versions past 3.8,
39 # as the project only targets bytecode of versions <= 3.8
40 doCheck = false;
41
42 meta = {
43 description = "Bytecode decompiler for Python versions 3.8 and below";
44 homepage = "https://github.com/rocky/python-uncompyle6";
45 license = lib.licenses.gpl3;
46 maintainers = with lib.maintainers; [ melvyn2 ];
47 };
48}