blob: 9822419f92b325796e5211d80bbb77701a780eea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
fetchpatch,
ply,
six,
setuptools,
tornado,
}:
buildPythonPackage rec {
pname = "thriftpy2";
version = "0.5.3";
pyproject = true;
src = fetchFromGitHub {
owner = "Thriftpy";
repo = "thriftpy2";
tag = "v${version}";
hash = "sha256-idUKqpyRj8lq9Aq6vEEeYEawzRPOdNsySnkgfhwPtMc=";
};
patches = [
(fetchpatch {
url = "https://github.com/Thriftpy/thriftpy2/commit/0127d259eb4b96acb060cd158ca709f0597b148c.patch";
sha256 = "sha256-UBcbd8NTkPyko1s9jTjKlQ7HprwtyOZS0m66u1CPH3A=";
})
];
build-system = [ setuptools ];
nativeBuildInputs = [ cython ];
dependencies = [
ply
six
tornado
];
# Not all needed files seems to be present
doCheck = false;
pythonImportsCheck = [ "thriftpy2" ];
meta = {
description = "Python module for Apache Thrift";
homepage = "https://github.com/Thriftpy/thriftpy2";
changelog = "https://github.com/Thriftpy/thriftpy2/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|