python3Package.depyf: init at 0.18.0 (#379198)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user