depot/third_party/nixpkgs/pkgs/development/python-modules/thriftpy2/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

49 lines
909 B
Nix

{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, ply
, pythonOlder
, six
, tornado
}:
buildPythonPackage rec {
pname = "thriftpy2";
version = "0.4.19";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Thriftpy";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-u5k9dP6llfTjM745fRHvKC2vM7jd9D8lvPUsDcYx0EI=";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
ply
six
tornado
];
# Not all needed files seems to be present
doCheck = false;
pythonImportsCheck = [
"thriftpy2"
];
meta = with lib; {
description = "Python module for Apache Thrift";
homepage = "https://github.com/Thriftpy/thriftpy2";
changelog = "https://github.com/Thriftpy/thriftpy2/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}