summary refs log tree commit diff
path: root/pkgs/development/python-modules/objsize/default.nix
blob: a002597da50a271dd495e382c6e216ddd104a142 (plain) (blame)
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
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:

buildPythonPackage rec {
  pname = "objsize";
  version = "0.7.0";
  pyproject= true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "liran-funaro";
    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";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ocfox ];
  };
}