nixpkgs/pkgs/development/python-modules/configupdater/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
845 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "configupdater";
version = "3.2";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "ConfigUpdater";
hash = "sha256-n9rFODHBsGKSm/OYtkm4fKMOfxpzXz+/SCBygEEGMGs=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov configupdater --cov-report term-missing' ""
'';
nativeBuildInputs = [ setuptools-scm ];
pythonImportsCheck = [ "configupdater" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Parser like ConfigParser but for updating configuration files";
homepage = "https://configupdater.readthedocs.io/en/latest/";
license = with licenses; [ mit psfl ];
maintainers = with maintainers; [ ris ];
};
}