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