1 { lib, stdenv, fetchFromGitHub, python3 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-v8+0J56sZVbGdBlOotObUa10/zFMTvfXdMYRsKhyZaY=";
15 # clang and gcc-11 complain about 'register' keywords used by
16 # python-2.7. Let's avoid blanket -Werror.
17 substituteInPlace test/setup.py \
18 --replace "'-Werror', " ""
22 "prefix=${placeholder "out"}"
31 checkTarget = "test-python";
34 homepage = "https://github.com/encukou/py3c";
35 description = "Python 2/3 compatibility layer for C extensions";
36 license = licenses.mit;
37 maintainers = with maintainers; [ ajs124 dotlambda ];