depot/third_party/nixpkgs/pkgs/development/python-modules/thrift/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
738 B
Nix

{
lib,
buildPythonPackage,
distutils,
fetchPypi,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "thrift";
version = "0.20.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-TdZi6t9riuvopBcpUnvWmt9s6qKoaBy+9k0Sc7Po/ro=";
};
build-system = [
distutils
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 ];
};
}