depot/third_party/nixpkgs/pkgs/development/python-modules/zconfig/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

62 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, docutils
, fetchPypi
, manuel
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
, zope-testrunner
}:
buildPythonPackage rec {
pname = "zconfig";
version = "4.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "ZConfig";
inherit version;
hash = "sha256-+NZC+6a6mNCGMb4sH3GtGVfAUf70qj0/ufHgjcYdAVY=";
};
patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
nativeBuildInputs = [
setuptools
];
buildInputs = [
docutils
manuel
];
propagatedBuildInputs = [
zope-testrunner
];
nativeCheckInputs = [
pygments
pytestCheckHook
];
pythonImportsCheck = [
"ZConfig"
];
pytestFlagsArray = [
"-s"
];
meta = with lib; {
description = "Structured Configuration Library";
homepage = "https://github.com/zopefoundation/ZConfig";
changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst";
license = licenses.zpl20;
maintainers = with maintainers; [ goibhniu ];
};
}