Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, isPy3k
2, certifi
3, CFNetwork
4, cmake
5, enum34
6, openssl
7, Security
8, six
9, stdenv
10}:
11
12buildPythonPackage rec {
13 pname = "uamqp";
14 version = "1.2.10";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "398dd818e9a6c14f00c434e7ad3fcbe1d0344f2f4c23bca8c5026280ae032f4f";
19 };
20
21 buildInputs = [
22 openssl
23 certifi
24 six
25 ] ++ lib.optionals (!isPy3k) [
26 enum34
27 ] ++ lib.optionals stdenv.isDarwin [
28 CFNetwork Security
29 ];
30
31 dontUseCmakeConfigure = true;
32
33 nativeBuildInputs = [
34 cmake
35 ];
36
37 # has no tests
38 doCheck = false;
39
40 meta = with lib; {
41 description = "An AMQP 1.0 client library for Python";
42 homepage = "https://github.com/Azure/azure-uamqp-python";
43 license = licenses.mit;
44 maintainers = with maintainers; [ mwilsoninsight ];
45 };
46}