nixpkgs/pkgs/development/python-modules/uncompyle6/default.nix
2019-12-30 16:46:55 +01:00

38 lines
764 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, spark_parser
, xdis
, nose
, pytest
, hypothesis
, six
}:
buildPythonPackage rec {
pname = "uncompyle6";
version = "3.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "f8c7ba2fd486d40d9a9fc1d6ab438588d7ce1be123aabf488736ff68a05f57f7";
};
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;
};
}