2018-10-16 23:05:31 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, spark_parser
|
|
|
|
, xdis
|
2018-10-25 20:04:49 +02:00
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
, hypothesis
|
|
|
|
, six
|
2018-10-16 23:05:31 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncompyle6";
|
2019-09-28 22:36:00 +02:00
|
|
|
version = "3.4.0";
|
2018-10-16 23:05:31 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 22:36:00 +02:00
|
|
|
sha256 = "0w4m0jywjb0w1y73nkb05zmjxb4plpfi3w2g1rgrf45afa2aqm8z";
|
2018-10-16 23:05:31 +02:00
|
|
|
};
|
|
|
|
|
2018-10-25 20:04:49 +02:00
|
|
|
checkInputs = [ nose pytest hypothesis six ];
|
2018-10-16 23:05:31 +02:00
|
|
|
propagatedBuildInputs = [ spark_parser xdis ];
|
|
|
|
|
2018-10-25 20:04:49 +02:00
|
|
|
# six import errors (yet it is supplied...)
|
|
|
|
checkPhase = ''
|
2019-05-14 20:49:57 +02:00
|
|
|
runHook preCheck
|
|
|
|
pytest ./pytest --ignore=pytest/test_function_call.py
|
|
|
|
runHook postCheck
|
2018-10-25 20:04:49 +02:00
|
|
|
'';
|
|
|
|
|
2018-10-16 23:05:31 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python cross-version byte-code deparser";
|
|
|
|
homepage = https://github.com/rocky/python-uncompyle6/;
|
2018-11-16 17:59:37 +01:00
|
|
|
license = licenses.gpl3;
|
2018-10-16 23:05:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|