58f8944c92
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
46 lines
830 B
Nix
46 lines
830 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
, certifi
|
|
, CFNetwork
|
|
, cmake
|
|
, enum34
|
|
, openssl
|
|
, Security
|
|
, six
|
|
, stdenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uamqp";
|
|
version = "1.2.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "398dd818e9a6c14f00c434e7ad3fcbe1d0344f2f4c23bca8c5026280ae032f4f";
|
|
};
|
|
|
|
buildInputs = [
|
|
openssl
|
|
certifi
|
|
six
|
|
] ++ lib.optionals (!isPy3k) [
|
|
enum34
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
CFNetwork Security
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "An AMQP 1.0 client library for Python";
|
|
homepage = "https://github.com/Azure/azure-uamqp-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mwilsoninsight ];
|
|
};
|
|
}
|