2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2017-07-14 05:06:29 +02:00
|
|
|
, fetchPypi
|
2020-07-03 13:33:48 +02:00
|
|
|
, fetchpatch
|
2017-07-14 05:06:29 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, zope_testrunner
|
2017-07-22 04:20:26 +02:00
|
|
|
, manuel
|
|
|
|
, docutils
|
2020-06-07 15:10:45 +02:00
|
|
|
, pythonAtLeast
|
2017-07-14 05:06:29 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ZConfig";
|
2019-07-02 21:06:25 +02:00
|
|
|
version = "3.5.0";
|
2017-07-14 05:06:29 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-02 21:06:25 +02:00
|
|
|
sha256 = "0s7aycxna07a04b4rswbkj4y5qh3gxy2mcsqb9dmy0iimj9f9550";
|
2017-07-14 05:06:29 +02:00
|
|
|
};
|
|
|
|
|
2020-07-03 13:33:48 +02: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-01-24 01:29:22 +01:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
|
2017-07-14 05:06:29 +02:00
|
|
|
|
2017-07-22 04:20:26 +02:00
|
|
|
buildInputs = [ manuel docutils ];
|
2017-07-14 05:06:29 +02:00
|
|
|
propagatedBuildInputs = [ zope_testrunner ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-14 05:06:29 +02:00
|
|
|
description = "Structured Configuration Library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pypi.python.org/pypi/ZConfig";
|
2017-08-06 13:49:18 +02:00
|
|
|
license = licenses.zpl20;
|
2017-07-14 05:06:29 +02:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|