Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, isPy27 3, asn1crypto 4, azure-storage-blob 5, boto3 6, certifi 7, cffi 8, fetchPypi 9, future 10, idna 11, ijson 12, isPy3k 13, lib 14, oscrypto 15, pyarrow 16, pyasn1-modules 17, pycryptodomex 18, pyjwt 19, pyopenssl 20, pytz 21, requests 22, six 23, urllib3 24}: 25 26buildPythonPackage rec { 27 pname = "snowflake-connector-python"; 28 version = "2.3.2"; 29 disabled = isPy27; 30 31 src = fetchPypi { 32 inherit pname version; 33 sha256 = "0as7m736wgx684wssnvhvixjkqidnhxn9i98rcdgagr67s3akfdy"; 34 }; 35 36 propagatedBuildInputs = [ 37 azure-storage-blob 38 asn1crypto 39 boto3 40 certifi 41 cffi 42 future 43 idna 44 ijson 45 oscrypto 46 pycryptodomex 47 pyjwt 48 pyopenssl 49 pytz 50 requests 51 six 52 ] ++ lib.optionals (!isPy3k) [ 53 pyarrow 54 pyasn1-modules 55 urllib3 56 ]; 57 58 postPatch = '' 59 substituteInPlace setup.py \ 60 --replace "'cryptography>=2.5.0,<3.0.0'," "'cryptography'," \ 61 --replace "'idna<2.10'," "'idna'," \ 62 --replace "'requests<2.24.0'," "'requests'," 63 ''; 64 65 # tests are not working 66 # XXX: fix the tests 67 doCheck = false; 68 pythonImportsCheck = [ "snowflake" "snowflake.connector" ]; 69 70 meta = with lib; { 71 description = "Snowflake Connector for Python"; 72 homepage = "https://www.snowflake.com/"; 73 license = licenses.asl20; 74 }; 75}