python311Packages.objsize: 0.6.1 -> 0.7.0

Diff: https://github.com/liran-funaro/objsize/compare/refs/tags/0.6.1...0.7.0
This commit is contained in:
Fabian Affolter 2023-10-29 16:24:52 +01:00
parent b41bb11ed8
commit 2b9f28d01b

View File

@ -1,20 +1,43 @@
{ lib
, python
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "objsize";
version = "0.6.1";
version = "0.7.0";
pyproject= true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "liran-funaro";
repo = pname;
rev = version;
hash = "sha256-FgRB7EENwNOlC7ynIRxcwucoywNjko494s75kOp5O+w=";
repo = "objsize";
rev = "refs/tags/${version}";
hash = "sha256-wy4Tj+Q+4zymRdoN8Z7wcazJTb2lQ+XHY1Kta02R3R0=";
};
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"objsize"
];
pytestFlagsArray = [
"test_objsize.py"
];
meta = with lib; {
description = "Traversal over objects subtree and calculate the total size";
homepage = "https://github.com/liran-funaro/objsize";