e7f069c37c
GitOrigin-RevId: 467ce5a9f45aaf96110b41eb863a56866e1c2c3c
37 lines
766 B
Nix
37 lines
766 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, spark_parser
|
|
, xdis
|
|
, nose
|
|
, pytest
|
|
, hypothesis
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uncompyle6";
|
|
version = "3.6.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6f5ae93cfb0ccf22b6b10b608c982bc0fa9bed2481ead57242c02ac64a573db7";
|
|
};
|
|
|
|
checkInputs = [ nose pytest hypothesis six ];
|
|
propagatedBuildInputs = [ spark_parser xdis ];
|
|
|
|
# six import errors (yet it is supplied...)
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
pytest ./pytest --ignore=pytest/test_function_call.py
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python cross-version byte-code deparser";
|
|
homepage = "https://github.com/rocky/python-uncompyle6/";
|
|
license = licenses.gpl3;
|
|
};
|
|
|
|
}
|