blob: 64fac77b11799d6dae3ec810ada1e82ce26865b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "objsize";
version = "0.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "liran-funaro";
repo = "objsize";
tag = version;
hash = "sha256-l0l80dMVWZqWBK4z53NCU+rKOQl6jRZ1zb2SmMnhs1k=";
};
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "objsize" ];
enabledTestPaths = [ "test_objsize.py" ];
meta = {
description = "Traversal over objects subtree and calculate the total size";
homepage = "https://github.com/liran-funaro/objsize";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ocfox ];
};
}
|