2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2018-10-16 14:05:31 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-29 13:44:34 -08:00
|
|
|
, pythonAtLeast
|
2018-10-16 14:05:31 -07:00
|
|
|
, spark_parser
|
|
|
|
, xdis
|
2018-10-25 11:04:49 -07:00
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
, hypothesis
|
|
|
|
, six
|
2018-10-16 14:05:31 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uncompyle6";
|
2020-10-16 13:44:37 -07:00
|
|
|
version = "3.7.4";
|
2020-11-29 13:44:34 -08:00
|
|
|
disabled = pythonAtLeast "3.9"; # See: https://github.com/rocky/python-uncompyle6/issues/331
|
2018-10-16 14:05:31 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-16 13:44:37 -07:00
|
|
|
sha256 = "af8330861bf940e7a3ae0f06d129b8e645191a36bf73ca15ff51997a837d41f8";
|
2018-10-16 14:05:31 -07:00
|
|
|
};
|
|
|
|
|
2018-10-25 11:04:49 -07:00
|
|
|
checkInputs = [ nose pytest hypothesis six ];
|
2018-10-16 14:05:31 -07:00
|
|
|
propagatedBuildInputs = [ spark_parser xdis ];
|
|
|
|
|
2018-10-25 11:04:49 -07:00
|
|
|
# six import errors (yet it is supplied...)
|
|
|
|
checkPhase = ''
|
2019-05-14 11:49:57 -07:00
|
|
|
runHook preCheck
|
|
|
|
pytest ./pytest --ignore=pytest/test_function_call.py
|
|
|
|
runHook postCheck
|
2018-10-25 11:04:49 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-16 14:05:31 -07:00
|
|
|
description = "Python cross-version byte-code deparser";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/rocky/python-uncompyle6/";
|
2018-11-16 08:59:37 -08:00
|
|
|
license = licenses.gpl3;
|
2018-10-16 14:05:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|