Unverified Commit 160d8664 authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

python3Package.depyf: init at 0.18.0 (#379198)

parents 15b06f82 d4e655c9
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  astor,
  dill,
  filelock,
}:

buildPythonPackage rec {
  pname = "depyf";
  version = "0.18.0";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-uZ8MODvpSa5F1dYG/kRMcfN1tVpXuNayDnhWZw1SEw0=";
  };

  # don't try to read git commit
  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail 'commit_id = get_git_commit_id()' 'commit_id = None'
  '';

  propagatedBuildInputs = [
    astor
    dill
    filelock
  ];

  pythonImportCheck = [ "depyf" ];

  meta = with lib; {
    description = "Decompile python functions, from bytecode to source code";
    homepage = "https://github.com/thuml/depyf";
    license = licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -3214,6 +3214,8 @@ self: super: with self; {
  deprecation-alias = callPackage ../development/python-modules/deprecation-alias { };
  depyf = callPackage ../development/python-modules/depyf { };
  derpconf = callPackage ../development/python-modules/derpconf { };
  desktop-entry-lib = callPackage ../development/python-modules/desktop-entry-lib { };