depot/third_party/nixpkgs/pkgs/development/python-modules/configupdater/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

38 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 ];
};
}