depot/third_party/nixpkgs/pkgs/development/python-modules/oracledb/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

47 lines
911 B
Nix

{
lib,
buildPythonPackage,
cryptography,
cython,
fetchPypi,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "oracledb";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9Sx984sTJDtc5YNFe4B0ijRoK5u4Nw2iSXhotxl2eYs=";
};
build-system = [
cython
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 ];
};
}