nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 31 lines 638 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, click 3, pytest 4, six 5}: 6 7buildPythonPackage rec { 8 pname = "xdis"; 9 version = "4.2.2"; 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "rocky"; 14 repo = "python-xdis"; 15 rev = version; 16 sha256 = "0d286myx6z6cbih77h8z5p9vscxvww3gy59lmi1w6y2nq6c8sqzb"; 17 }; 18 19 checkInputs = [ pytest ]; 20 propagatedBuildInputs = [ six click ]; 21 22 checkPhase = '' 23 make check 24 ''; 25 26 meta = with lib; { 27 description = "Python cross-version byte-code disassembler and marshal routines"; 28 homepage = https://github.com/rocky/python-xdis/; 29 license = licenses.gpl2; 30 }; 31}