depot/third_party/nixpkgs/pkgs/development/python-modules/uamqp/default.nix
Default email d7dbe45cea Project import generated by Copybara.
GitOrigin-RevId: 9480bae337095fd24f61380bce3174fdfe926a00
2020-06-18 09:06:33 +02:00

46 lines
817 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, certifi
, CFNetwork
, cmake
, enum34
, openssl
, Security
, six
, stdenv
}:
buildPythonPackage rec {
pname = "uamqp";
version = "1.2.8";
src = fetchPypi {
inherit pname version;
sha256 = "12yq435h27iv1kzgq3gl7c7hxdivvc2sl0l1kslgf2wxw53n7jgj";
};
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 ];
};
}