nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 63 lines 1.1 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, certifi 5, CFNetwork 6, cmake 7, CoreFoundation 8, enum34 9, fetchpatch 10, fetchPypi 11, isPy3k 12, openssl 13, Security 14, six 15}: 16 17buildPythonPackage rec { 18 pname = "uamqp"; 19 version = "1.5.3"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "sha256-guhfOMvddC4E+oOmvpeG8GsXEfqLcSHVdtj3w8fF2Vs="; 24 }; 25 26 patches = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ 27 ./darwin-azure-c-shared-utility-corefoundation.patch 28 ]; 29 30 nativeBuildInputs = [ 31 cmake 32 ]; 33 34 buildInputs = lib.optionals stdenv.isDarwin [ 35 CoreFoundation 36 CFNetwork 37 Security 38 ]; 39 40 propagatedBuildInputs = [ 41 certifi 42 openssl 43 six 44 ] ++ lib.optionals (!isPy3k) [ 45 enum34 46 ]; 47 48 dontUseCmakeConfigure = true; 49 50 # Project has no tests 51 doCheck = false; 52 53 pythonImportsCheck = [ 54 "uamqp" 55 ]; 56 57 meta = with lib; { 58 description = "An AMQP 1.0 client library for Python"; 59 homepage = "https://github.com/Azure/azure-uamqp-python"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ maxwilson ]; 62 }; 63}