2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-01-17 00:15:33 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, certifi
|
2021-12-06 16:07:01 +00:00
|
|
|
, CFNetwork
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
2021-12-06 16:07:01 +00:00
|
|
|
, CoreFoundation
|
2020-04-24 23:36:52 +00:00
|
|
|
, enum34
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl
|
2021-01-17 00:15:33 +00:00
|
|
|
, Security
|
2021-12-06 16:07:01 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uamqp";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "1.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-VevtbXtOTKQEqVYpNKFrDhvyDBJY+uQMhld6in+EroE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreFoundation
|
|
|
|
CFNetwork
|
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
openssl
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# Project has no tests
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"uamqp"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An AMQP 1.0 client library for Python";
|
|
|
|
homepage = "https://github.com/Azure/azure-uamqp-python";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|