mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
38 lines
764 B
Nix
38 lines
764 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, spark_parser
|
|
, xdis
|
|
, nose
|
|
, pytest
|
|
, hypothesis
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uncompyle6";
|
|
version = "3.3.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9c492a560ff1c8713f0947cfc3ab755c368e26421d13087cd5b6c01b1529ea5b";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|