1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "parameter-expansion-patched"; 11 version = "0.3.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-/128ifveWC8zNlYtGWtxB3HpK6p7bVk1ahSwhaC2dAs="; 19 }; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "parameter_expansion" 33 ]; 34 35 meta = with lib; { 36 description = "POSIX parameter expansion in Python"; 37 homepage = "https://github.com/nexB/parameter_expansion_patched"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}