60 lines
943 B
Nix
60 lines
943 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, certifi
|
|
, CFNetwork
|
|
, cmake
|
|
, CoreFoundation
|
|
, enum34
|
|
, fetchpatch
|
|
, fetchPypi
|
|
, isPy3k
|
|
, openssl
|
|
, Security
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uamqp";
|
|
version = "1.5.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-VevtbXtOTKQEqVYpNKFrDhvyDBJY+uQMhld6in+EroE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
CoreFoundation
|
|
CFNetwork
|
|
Security
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
openssl
|
|
six
|
|
] ++ lib.optionals (!isPy3k) [
|
|
enum34
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"uamqp"
|
|
];
|
|
|
|
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; [ maxwilson ];
|
|
};
|
|
}
|