nixpkgs/pkgs/development/python-modules/uamqp/default.nix

47 lines
827 B
Nix
Raw Normal View History

2019-09-14 01:16:34 +00:00
{ lib, buildPythonPackage, fetchPypi, isPy3k
2019-04-29 21:43:31 +00:00
, certifi
2019-09-14 01:16:34 +00:00
, CFNetwork
, cmake
2019-04-29 21:43:31 +00:00
, enum34
, openssl
2019-09-14 01:16:34 +00:00
, Security
, six
2019-09-14 01:16:34 +00:00
, stdenv
2019-04-29 21:43:31 +00:00
}:
buildPythonPackage rec {
pname = "uamqp";
2019-10-16 09:43:16 +00:00
version = "1.2.3";
2019-04-29 21:43:31 +00:00
src = fetchPypi {
inherit pname version;
2019-10-16 09:43:16 +00:00
sha256 = "9d15cb12d61a6481f7de412c2d53a99f87650e0d1e5394b047aeee5514964fb8";
2019-04-29 21:43:31 +00:00
};
buildInputs = [
openssl
certifi
six
] ++ lib.optionals (!isPy3k) [
enum34
] ++ lib.optionals stdenv.isDarwin [
CFNetwork Security
2019-04-29 21:43:31 +00:00
];
2019-09-14 01:16:34 +00:00
dontUseCmakeConfigure = true;
2019-04-29 21:43:31 +00: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 ];
};
}