at master 852 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 pythonOlder, 5 pytestCheckHook, 6 lib, 7}: 8 9buildPythonPackage rec { 10 pname = "prodict"; 11 version = "0.8.6"; 12 format = "setuptools"; 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "ramazanpolat"; 17 repo = "prodict"; 18 rev = version; 19 hash = "sha256-c46JEQFg4KRwerqpMSgh6+tYRpKTOX02Lzsq4/meS3o="; 20 }; 21 22 # make setuptools happy on case-sensitive filesystems 23 postPatch = ''if [[ ! -f README.md ]]; then mv README.MD README.md; fi''; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 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}