at 22.05-pre 678 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, click 3, pytest 4, six 5}: 6 7buildPythonPackage rec { 8 pname = "xdis"; 9 version = "6.0.2"; 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "rocky"; 14 repo = "python-xdis"; 15 rev = version; 16 sha256 = "sha256-P8mUkAO3usFCE+E9cna2x1iA2uyHVPX9FHDpX+kTFWQ="; 17 }; 18 19 checkInputs = [ pytest ]; 20 propagatedBuildInputs = [ six click ]; 21 22 checkPhase = '' 23 make check 24 ''; 25 pythonImportsCheck = [ "xdis" ]; 26 27 meta = with lib; { 28 description = "Python cross-version byte-code disassembler and marshal routines"; 29 homepage = "https://github.com/rocky/python-xdis/"; 30 license = licenses.gpl2Plus; 31 }; 32}