mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
0215034f25
when they already rely on SRI hashes.
40 lines
858 B
Nix
40 lines
858 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonAtLeast
|
|
, spark_parser
|
|
, xdis
|
|
, nose
|
|
, pytest
|
|
, hypothesis
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uncompyle6";
|
|
version = "3.9.0";
|
|
disabled = pythonAtLeast "3.9"; # See: https://github.com/rocky/python-uncompyle6/issues/331
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-HmqQLeYOpcP30q9+J0UAa05Lm97eiIoH+EQcmTjy7n0=";
|
|
};
|
|
|
|
nativeCheckInputs = [ 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 lib; {
|
|
description = "Python cross-version byte-code deparser";
|
|
homepage = "https://github.com/rocky/python-uncompyle6/";
|
|
license = licenses.gpl3;
|
|
};
|
|
|
|
}
|