3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/uamqp/default.nix

47 lines
830 B
Nix
Raw Normal View History

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
, cmake
2019-04-29 22:43:31 +01:00
, enum34
, openssl
2019-09-14 02:16:34 +01:00
, Security
, six
2019-09-14 02:16:34 +01:00
, stdenv
2019-04-29 22:43:31 +01:00
}:
buildPythonPackage rec {
pname = "uamqp";
version = "1.2.12";
2019-04-29 22:43:31 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "c6657f1d8aae566b89d02c6282827dddcec2a90f75dc0d2d91a47e00c8999d99";
2019-04-29 22:43:31 +01:00
};
buildInputs = [
openssl
certifi
six
] ++ lib.optionals (!isPy3k) [
enum34
] ++ 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";
2020-03-16 03:02:47 +00:00
homepage = "https://github.com/Azure/azure-uamqp-python";
2019-04-29 22:43:31 +01:00
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ];
};
}