Merge pull request #212892 from ocfox/objsize

python3Packages.objsize: init at 0.6.1
This commit is contained in:
Nick Cao 2023-02-02 09:42:44 +08:00 committed by GitHub
commit 199c540e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ lib
, python
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "objsize";
version = "0.6.1";
src = fetchFromGitHub {
owner = "liran-funaro";
repo = pname;
rev = version;
hash = "sha256-FgRB7EENwNOlC7ynIRxcwucoywNjko494s75kOp5O+w=";
};
meta = with lib; {
description = "Traversal over objects subtree and calculate the total size";
homepage = "https://github.com/liran-funaro/objsize";
license = licenses.bsd3;
maintainers = with maintainers; [ ocfox ];
};
}

View File

@ -6528,6 +6528,8 @@ self: super: with self; {
objax = callPackage ../development/python-modules/objax { };
objsize = callPackage ../development/python-modules/objsize { };
objgraph = callPackage ../development/python-modules/objgraph {
# requires both the graphviz package and python package
graphvizPkgs = pkgs.graphviz;