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