1{ lib
2, buildPythonPackage
3, cython
4, fetchFromGitHub
5, pythonOlder
6, ply
7, six
8, tornado
9}:
10
11buildPythonPackage rec {
12 pname = "thriftpy2";
13 version = "0.4.15";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "Thriftpy";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 sha256 = "sha256-1X1roRFQgLJ+rrRuRlHMVtUdj2D68WGdxvid/0chsvI=";
22 };
23
24 nativeBuildInputs = [
25 cython
26 ];
27
28 propagatedBuildInputs = [
29 ply
30 six
31 tornado
32 ];
33
34 # Not all needed files seems to be present
35 doCheck = false;
36
37 pythonImportsCheck = [ "thriftpy2" ];
38
39 meta = with lib; {
40 description = "Python module for Apache Thrift";
41 homepage = "https://github.com/Thriftpy/thriftpy2";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}