depot/third_party/nixpkgs/pkgs/development/python-modules/oracledb/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

47 lines
911 B
Nix

{
lib,
buildPythonPackage,
cryptography,
cython,
fetchPypi,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "oracledb";
version = "2.4.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vVl2vvDkZuD50bn2Ux+1uBcdyFNHF8ywSybmgLbHVx0=";
};
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 ];
};
}