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

63 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, isPy3k
2019-04-29 22:43:31 +01:00
, certifi
, cmake
2019-04-29 22:43:31 +01:00
, enum34
, openssl
, six
, CFNetwork
, CoreFoundation
, Security
2019-04-29 22:43:31 +01:00
}:
buildPythonPackage rec {
pname = "uamqp";
version = "1.2.13";
2019-04-29 22:43:31 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zDUFe/yMCThn+qJqDekMrUHEf1glGxBw4pioExLLoqg=";
2019-04-29 22:43:31 +01:00
};
patches = [
(fetchpatch {
url = "https://github.com/Azure/azure-c-shared-utility/commit/52ab2095649b5951e6af77f68954209473296983.patch";
sha256 = "06pxhdpkv94pv3lhj1vy0wlsqsdznz485bvg3zafj67r55g40lhd";
stripLen = "2";
extraPrefix = "src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/";
})
];
2019-04-29 22:43:31 +01:00
buildInputs = [
openssl
certifi
six
] ++ lib.optionals (!isPy3k) [
enum34
] ++ lib.optionals stdenv.isDarwin [
CoreFoundation
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;
2020-11-15 14:35:46 +00:00
maintainers = with maintainers; [ maxwilson ];
2019-04-29 22:43:31 +01:00
};
}