nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 751 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "objsize"; 11 version = "0.8.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "liran-funaro"; 16 repo = "objsize"; 17 tag = version; 18 hash = "sha256-u4PTUk3K3ZCNZ87xM+PoCabsw+EjOoDgNySDWWB7yho="; 19 }; 20 21 build-system = [ 22 setuptools 23 ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "objsize" ]; 28 29 enabledTestPaths = [ "test_objsize.py" ]; 30 31 meta = { 32 description = "Traversal over objects subtree and calculate the total size"; 33 homepage = "https://github.com/liran-funaro/objsize"; 34 license = lib.licenses.bsd3; 35 maintainers = with lib.maintainers; [ ocfox ]; 36 }; 37}