depot/third_party/nixpkgs/pkgs/development/python-modules/oracledb/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
901 B
Nix

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