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";
|
2018-10-25 20:04:49 +02:00
|
|
|
version = "3.2.3";
|
2018-10-16 23:05:31 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-25 20:04:49 +02:00
|
|
|
sha256 = "bd882f3c979b49d28ba7accc5ce7380ced8cab12e782e9170769ca15f0b81f8a";
|
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 = ''
|
|
|
|
pytest ./pytest --ignore=pytest/test_build_const_key_map.py \
|
|
|
|
--ignore=pytest/test_grammar.py
|
|
|
|
'';
|
|
|
|
|
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/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|