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