nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 55 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, click 4, fetchFromGitHub 5, fetchpatch 6, pytestCheckHook 7, pythonOlder 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "xdis"; 13 version = "unstable-2022-04-13"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "rocky"; 20 repo = "python-xdis"; 21 # Support for later Python releases is missing in 6.0.3 22 rev = "f888df7df5cb8839927e9187c258769cc77fb7a3"; 23 hash = "sha256-V1ws5GibRkutFRNcjlP7aW+AshSyWavXIxuwznVbRlU="; 24 }; 25 26 propagatedBuildInputs = [ 27 click 28 six 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "xdis" 37 ]; 38 39 disabledTestPaths = [ 40 # Our Python release is not in the test matrix 41 "test_unit/test_disasm.py" 42 ]; 43 44 disabledTests = [ 45 "test_big_linenos" 46 "test_basic" 47 ]; 48 49 meta = with lib; { 50 description = "Python cross-version byte-code disassembler and marshal routines"; 51 homepage = "https://github.com/rocky/python-xdis/"; 52 license = licenses.gpl2Plus; 53 maintainers = with maintainers; [ ]; 54 }; 55}