14 buildPythonPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-ubAXCifSfNtxbFIJZD8IuK/8oPT9vo77YBCexoO9zsw=";
27 substituteInPlace setup.py \
28 --replace "version.get_git_version()" '"${version}"'
35 propagatedBuildInputs = [
49 # ImportError: To use NTLM authentication you need to install ntlm-auth module
50 # ntlm-auth has been removed from nixpkgs
53 # TypeError: CertificateBuilder.add_extension() got an unexpected keyword argument 'extension'
54 # Tests are broken for pyOpenSSL>=23.0.0
55 # https://github.com/denisenkom/pytds/blob/1.13.0/test_requirements.txt
56 "test_with_simple_server_req_encryption"
57 "test_both_server_and_client_encryption_on"
58 "test_server_has_enc_on_but_client_is_off"
59 "test_only_login_encrypted"
60 "test_server_encryption_not_supported"
61 "test_server_with_bad_name_in_cert"
63 "test_encrypted_socket"
66 pythonImportsCheck = [ "pytds" ];
69 description = "Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation";
70 homepage = "https://python-tds.readthedocs.io/";
71 license = licenses.mit;
72 maintainers = with maintainers; [ mbalatsko ];