1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "flatten-dict"; 13 version = "0.4.2"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "ianlini"; 20 repo = "flatten-dict"; 21 rev = version; 22 hash = "sha256-uHenKoD4eLm9sMREVuV0BB/oUgh4NMiuj+IWd0hlxNQ="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ six ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "flatten_dict" ]; 32 33 meta = with lib; { 34 description = "Module for flattening and unflattening dict-like objects"; 35 homepage = "https://github.com/ianlini/flatten-dict"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}