Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 640 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, click 3, pytest 4, six 5}: 6 7buildPythonPackage rec { 8 pname = "xdis"; 9 version = "5.0.4"; 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "rocky"; 14 repo = "python-xdis"; 15 rev = version; 16 sha256 = "0hh5pam8dabvh0w1bks0rqfq85gjy3h6ljrzmjg0nqsaapp1g4dd"; 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}