1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, spark_parser
5, xdis
6, nose
7, pytest
8, hypothesis
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "uncompyle6";
14 version = "3.3.3";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "9c492a560ff1c8713f0947cfc3ab755c368e26421d13087cd5b6c01b1529ea5b";
19 };
20
21 checkInputs = [ nose pytest hypothesis six ];
22 propagatedBuildInputs = [ spark_parser xdis ];
23
24 # six import errors (yet it is supplied...)
25 checkPhase = ''
26 runHook preCheck
27 pytest ./pytest --ignore=pytest/test_function_call.py
28 runHook postCheck
29 '';
30
31 meta = with stdenv.lib; {
32 description = "Python cross-version byte-code deparser";
33 homepage = https://github.com/rocky/python-uncompyle6/;
34 license = licenses.gpl3;
35 };
36
37}