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