2019-09-14 02:16:34 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
2019-04-29 22:43:31 +01:00
|
|
|
, certifi
|
2019-09-14 02:16:34 +01:00
|
|
|
, CFNetwork
|
2019-07-16 22:41:42 +01:00
|
|
|
, cmake
|
2019-04-29 22:43:31 +01:00
|
|
|
, enum34
|
2019-07-16 22:41:42 +01:00
|
|
|
, openssl
|
2019-09-14 02:16:34 +01:00
|
|
|
, Security
|
2019-07-16 22:41:42 +01:00
|
|
|
, six
|
2019-09-14 02:16:34 +01:00
|
|
|
, stdenv
|
2019-04-29 22:43:31 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uamqp";
|
2019-12-19 19:31:24 +00:00
|
|
|
version = "1.2.5";
|
2019-04-29 22:43:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:24 +00:00
|
|
|
sha256 = "02d78242fcd0a58489aaf275964a6cf7581d7a2334ee240d2d547f8aca8607c6";
|
2019-04-29 22:43:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
2019-07-16 22:41:42 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
CFNetwork Security
|
2019-04-29 22:43:31 +01:00
|
|
|
];
|
|
|
|
|
2019-09-14 02:16:34 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-04-29 22:43:31 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|