3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/uncompyle6/default.nix

38 lines
764 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, spark_parser
, xdis
, nose
, pytest
, hypothesis
, six
}:
buildPythonPackage rec {
pname = "uncompyle6";
2019-10-24 07:47:50 +01:00
version = "3.5.0";
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:50 +01:00
sha256 = "4e6e86c05de588cbf5a2c35ddd080f23cd1770a1ad15c84dc1b2c78d65113af7";
};
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;
};
}