1{ lib
2, buildPythonPackage
3, cython
4, fetchFromGitHub
5, ply
6, pythonOlder
7, six
8, tornado
9}:
10
11buildPythonPackage rec {
12 pname = "thriftpy2";
13 version = "0.4.16";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "Thriftpy";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-o+h38NREnh14M23gyF2X2UdW7/spmHFo0rqvkKnmSRQ=";
23 };
24
25 nativeBuildInputs = [
26 cython
27 ];
28
29 propagatedBuildInputs = [
30 ply
31 six
32 tornado
33 ];
34
35 # Not all needed files seems to be present
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "thriftpy2"
40 ];
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}