nixpkgs/pkgs/development/python-modules/oracledb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
911 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
cryptography,
cython,
fetchPypi,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "oracledb";
version = "2.2.1";
2023-12-21 18:39:51 +01:00
pyproject = true;
2023-12-21 18:39:51 +01:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hGTG8ClfMxja9sLHLIPC3Lw34T+P1E4+Of+GZfRC1rY=";
};
2024-03-24 21:18:14 +01:00
build-system = [
cython
2023-12-21 18:39:51 +01:00
setuptools
wheel
];
dependencies = [ cryptography ];
# Checks need an Oracle database
doCheck = false;
pythonImportsCheck = [ "oracledb" ];
meta = with lib; {
description = "Python driver for Oracle Database";
homepage = "https://oracle.github.io/python-oracledb";
changelog = "https://github.com/oracle/python-oracledb/blob/v${version}/doc/src/release_notes.rst";
license = with licenses; [
asl20 # and or
upl
];
maintainers = with maintainers; [ harvidsen ];
};
}