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