python3Package.depyf: init at 0.18.0 (#379198)

This commit is contained in:
Pavol Rusnak
2025-02-03 23:38:30 +01:00
committed by GitHub
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,38 @@
{
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
View File
@@ -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 { };