@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchFromGitHub, python2, python3 }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "py3c";
5+ version = "1.3.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "encukou";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi";
12+ };
13+
14+ makeFlags = [
15+ "prefix=${placeholder "out"}"
16+ ];
17+
18+ doCheck = true;
19+
20+ checkInputs = [
21+ python2
22+ python3
23+ ];
24+
25+ meta = with lib; {
26+ homepage = "https://github.com/encukou/py3c";
27+ description = "Python 2/3 compatibility layer for C extensions";
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ ajs124 ];
30+ };
31+}