1{ lib, stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, setuptools-scm }: 2 3buildPythonPackage rec { 4 pname = "configparser"; 5 version = "6.0.0"; 6 format = "pyproject"; 7 8 src = fetchPypi { 9 inherit pname version; 10 hash = "sha256-7JFKseVsZy3h9cNIOWTmj3GzTkV5BLe3bga5Iq7AZ6g="; 11 }; 12 13 nativeBuildInputs = [ setuptools-scm ]; 14 15 nativeCheckInputs = [ pytestCheckHook ]; 16 17 preConfigure = '' 18 export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8 19 ''; 20 21 preCheck = '' 22 # avoid FileNotFoundError 23 # FileNotFoundError: [Errno 2] No such file or directory: 'cfgparser.3' 24 cd tests 25 ''; 26 27 meta = with lib; { 28 description = "Updated configparser from Python 3.7 for Python 2.6+."; 29 homepage = "https://github.com/jaraco/configparser"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ ]; 32 }; 33}