1{ buildPythonPackage 2, fetchFromGitHub 3, pythonOlder 4, pytestCheckHook 5, lib 6}: 7 8buildPythonPackage rec { 9 pname = "prodict"; 10 version = "0.8.6"; 11 disabled = pythonOlder "3.7"; 12 13 src = fetchFromGitHub { 14 owner = "ramazanpolat"; 15 repo = pname; 16 rev = version; 17 hash = "sha256-c46JEQFg4KRwerqpMSgh6+tYRpKTOX02Lzsq4/meS3o="; 18 }; 19 20 # make setuptools happy on case-sensitive filesystems 21 postPatch = ''if [[ ! -f README.md ]]; then mv README.MD README.md; fi''; 22 23 nativeCheckInputs = [ 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "prodict" ]; 28 29 meta = { 30 description = "Access Python dictionary as a class with type hinting and autocompletion"; 31 homepage = "https://github.com/ramazanpolat/prodict"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ bcdarwin ]; 34 }; 35}