1{ 2 lib, 3 buildPythonPackage, 4 distutils, 5 fetchPypi, 6 pythonOlder, 7 setuptools, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "thrift"; 13 version = "0.22.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-QugnavvV9U/h02SFi2h3vF5aSl7Wn2oAW5TKSRj+FGY="; 21 }; 22 23 build-system = [ 24 distutils 25 setuptools 26 ]; 27 28 dependencies = [ six ]; 29 30 # No tests. Breaks when not disabling. 31 doCheck = false; 32 33 pythonImportsCheck = [ "thrift" ]; 34 35 meta = with lib; { 36 description = "Python bindings for the Apache Thrift RPC system"; 37 homepage = "https://thrift.apache.org/"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ hbunke ]; 40 }; 41}