2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, zope_testrunner
|
|
|
|
, manuel
|
|
|
|
, docutils
|
2020-06-15 15:56:04 +00:00
|
|
|
, pythonAtLeast
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ZConfig";
|
|
|
|
version = "3.5.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0s7aycxna07a04b4rswbkj4y5qh3gxy2mcsqb9dmy0iimj9f9550";
|
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
patches = [
|
|
|
|
# fixes 3.8+ logger validation issues, has been merged into master, remove next bump
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/zopefoundation/ZConfig/commit/f0c2990d35ac3c924ecc8be4a5c71c8e4abbd0e5.patch";
|
|
|
|
sha256 = "1bjg3wrvii0rwzf3s0vlpzgg2ckj0h2zxkyxwjcr64s4k2vaq9ij";
|
|
|
|
})
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ manuel docutils ];
|
|
|
|
propagatedBuildInputs = [ zope_testrunner ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Structured Configuration Library";
|
|
|
|
homepage = "https://pypi.python.org/pypi/ZConfig";
|
|
|
|
license = licenses.zpl20;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|