at 24.11-pre 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 fetchpatch, 7 pytestCheckHook, 8 pythonAtLeast, 9 pythonOlder, 10 six, 11}: 12 13buildPythonPackage rec { 14 pname = "xdis"; 15 version = "6.1.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "rocky"; 22 repo = "python-xdis"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-KgKTO99T2/be1sBs5rY3Oy7/Yl9WGgdG3hqqkZ7D7ZY="; 25 }; 26 27 propagatedBuildInputs = [ 28 click 29 six 30 ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "xdis" ]; 35 36 disabledTestPaths = [ 37 # import file mismatch: 38 # imported module 'test_disasm' has this __file__ attribute: 39 # /build/source/pytest/test_disasm.py 40 # which is not the same as the test file we want to collect: 41 # /build/source/test_unit/test_disasm.py 42 "test_unit/test_disasm.py" 43 44 # Doesn't run on non-2.7 but has global-level mis-import 45 "test_unit/test_dis27.py" 46 ]; 47 48 disabledTests = [ 49 # AssertionError: events did not match expectation 50 "test_big_linenos" 51 # AssertionError: False is not true : PYTHON VERSION 4.0 is not in magic.magics.keys 52 "test_basic" 53 ]; 54 55 meta = with lib; { 56 description = "Python cross-version byte-code disassembler and marshal routines"; 57 homepage = "https://github.com/rocky/python-xdis"; 58 changelog = "https://github.com/rocky/python-xdis/releases/tag/${version}"; 59 license = licenses.gpl2Plus; 60 maintainers = with maintainers; [ onny ]; 61 }; 62}