depot/third_party/nixpkgs/pkgs/development/python-modules/pymssql/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

55 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
freetds,
krb5-c,
openssl,
cython,
gevent,
psutil,
pytestCheckHook,
setuptools-scm,
sqlalchemy,
tomli,
}:
buildPythonPackage rec {
pname = "pymssql";
version = "2.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-8DTka1aAYdFxSPHe3qZI+dX2tzQOjP/g7bqhcTy0q6s=";
};
build-system = [
cython
setuptools-scm
tomli
];
buildInputs = [
freetds
krb5-c
openssl
];
nativeCheckInputs = [
gevent
psutil
pytestCheckHook
sqlalchemy
];
pythonImportsCheck = [ "pymssql" ];
meta = with lib; {
changelog = "https://github.com/pymssql/pymssql/blob/v${version}/ChangeLog.rst";
description = "Simple database interface for Python that builds on top of FreeTDS to provide a Python DB-API (PEP-249) interface to Microsoft SQL Server";
homepage = "https://github.com/pymssql/pymssql";
license = licenses.lgpl21Plus;
maintainers = [ maintainers.sith-lord-vader ];
};
}