depot/third_party/nixpkgs/pkgs/development/python-modules/configparser/default.nix

34 lines
851 B
Nix
Raw Normal View History

{ 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; [ ];
};
}