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