Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / objsize / default.nix
bloba002597da50a271dd495e382c6e216ddd104a142
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools
7 , wheel
8 }:
10 buildPythonPackage rec {
11   pname = "objsize";
12   version = "0.7.0";
13   pyproject= true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "liran-funaro";
19     repo = "objsize";
20     rev = "refs/tags/${version}";
21     hash = "sha256-wy4Tj+Q+4zymRdoN8Z7wcazJTb2lQ+XHY1Kta02R3R0=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     wheel
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "objsize"
35   ];
37   pytestFlagsArray = [
38     "test_objsize.py"
39   ];
41   meta = with lib; {
42     description = "Traversal over objects subtree and calculate the total size";
43     homepage = "https://github.com/liran-funaro/objsize";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ ocfox ];
46   };