2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
33 lines
851 B
Nix
33 lines
851 B
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, setuptools-scm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "configparser";
|
|
version = "6.0.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7JFKseVsZy3h9cNIOWTmj3GzTkV5BLe3bga5Iq7AZ6g=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preConfigure = ''
|
|
export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8
|
|
'';
|
|
|
|
preCheck = ''
|
|
# avoid FileNotFoundError
|
|
# FileNotFoundError: [Errno 2] No such file or directory: 'cfgparser.3'
|
|
cd tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Updated configparser from Python 3.7 for Python 2.6+.";
|
|
homepage = "https://github.com/jaraco/configparser";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|