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 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "c7d282687a5308319bf3d2e7706e575c635b0a470342641c93bea0ea3b5331df"; 16 }; 17 18 # No tests available 19 doCheck = false; 20 21 nativeBuildInputs = [ setuptools-scm ]; 22 23 preConfigure = '' 24 export LC_ALL=${if stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8 25 ''; 26 27 meta = with lib; { 28 description = "Updated configparser from Python 3.7 for Python 2.6+"; 29 license = licenses.mit; 30 homepage = "https://github.com/jaraco/configparser"; 31 }; 32}