Files
nixpkgs/pkgs/development/python-modules/zconfig/default.nix
2025-02-03 07:57:36 +01:00

56 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
docutils,
fetchPypi,
manuel,
pygments,
pytestCheckHook,
setuptools,
zope-testrunner,
}:
buildPythonPackage rec {
pname = "zconfig";
version = "4.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-oOS1J3xM7oBgzjNaV4rEWPgsJArpaxZlkgDbxNmL/M4=";
};
patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
postPatch = ''
substituteInPlace pyproject.toml --replace-fail 'setuptools <= 75.6.0' 'setuptools'
'';
build-system = [ setuptools ];
buildInputs = [
docutils
manuel
];
dependencies = [ zope-testrunner ];
nativeCheckInputs = [
pygments
pytestCheckHook
];
pythonImportsCheck = [ "ZConfig" ];
pytestFlagsArray = [ "-s" ];
meta = {
description = "Structured Configuration Library";
homepage = "https://github.com/zopefoundation/ZConfig";
changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}