1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, msgpack 5, pytestCheckHook 6, pythonOlder 7, pyyaml 8, ruamel-yaml 9, toml 10}: 11 12buildPythonPackage rec { 13 pname = "python-box"; 14 version = "5.4.1"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "cdgriffith"; 19 repo = "Box"; 20 rev = version; 21 sha256 = "sha256-SkteajcWG7rBFMm6Xp6QCfkZfwthRituGL/RtICbtYk="; 22 }; 23 24 propagatedBuildInputs = [ 25 msgpack 26 pyyaml 27 ruamel-yaml 28 toml 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "box" ]; 36 37 meta = with lib; { 38 description = "Python dictionaries with advanced dot notation access"; 39 homepage = "https://github.com/cdgriffith/Box"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}