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