Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 46 lines 827 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, certifi 3, CFNetwork 4, cmake 5, enum34 6, openssl 7, Security 8, six 9, stdenv 10}: 11 12buildPythonPackage rec { 13 pname = "uamqp"; 14 version = "1.2.5"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "02d78242fcd0a58489aaf275964a6cf7581d7a2334ee240d2d547f8aca8607c6"; 19 }; 20 21 buildInputs = [ 22 openssl 23 certifi 24 six 25 ] ++ lib.optionals (!isPy3k) [ 26 enum34 27 ] ++ lib.optionals stdenv.isDarwin [ 28 CFNetwork Security 29 ]; 30 31 dontUseCmakeConfigure = true; 32 33 nativeBuildInputs = [ 34 cmake 35 ]; 36 37 # has no tests 38 doCheck = false; 39 40 meta = with lib; { 41 description = "An AMQP 1.0 client library for Python"; 42 homepage = https://github.com/Azure/azure-uamqp-python; 43 license = licenses.mit; 44 maintainers = with maintainers; [ mwilsoninsight ]; 45 }; 46}