Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / zconfig / default.nix
bloba6a00ad821b867e01d9de4d01fe50b6951d96f90
1 { lib, stdenv
2 , fetchPypi
3 , fetchpatch
4 , buildPythonPackage
5 , zope_testrunner
6 , manuel
7 , docutils
8 , pythonAtLeast
9 }:
11 buildPythonPackage rec {
12   pname = "ZConfig";
13   version = "3.5.0";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "0s7aycxna07a04b4rswbkj4y5qh3gxy2mcsqb9dmy0iimj9f9550";
18   };
20   patches = [
21     # fixes 3.8+ logger validation issues, has been merged into master, remove next bump
22     (fetchpatch {
23       url = "https://github.com/zopefoundation/ZConfig/commit/f0c2990d35ac3c924ecc8be4a5c71c8e4abbd0e5.patch";
24       sha256 = "1bjg3wrvii0rwzf3s0vlpzgg2ckj0h2zxkyxwjcr64s4k2vaq9ij";
25     })
26   ] ++ lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
28   buildInputs = [ manuel docutils ];
29   propagatedBuildInputs = [ zope_testrunner ];
31   meta = with lib; {
32     description = "Structured Configuration Library";
33     homepage = "https://pypi.python.org/pypi/ZConfig";
34     license = licenses.zpl20;
35     maintainers = [ maintainers.goibhniu ];
36   };