depot/third_party/nixpkgs/pkgs/development/python-modules/thrift/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
771 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "thrift";
version = "0.20.0";
pyproject = true;
# Still uses distutils
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-TdZi6t9riuvopBcpUnvWmt9s6qKoaBy+9k0Sc7Po/ro=";
};
build-system = [ setuptools ];
dependencies = [ six ];
# No tests. Breaks when not disabling.
doCheck = false;
pythonImportsCheck = [ "thrift" ];
meta = with lib; {
description = "Python bindings for the Apache Thrift RPC system";
homepage = "https://thrift.apache.org/";
license = licenses.asl20;
maintainers = with maintainers; [ hbunke ];
};
}