depot/third_party/nixpkgs/pkgs/development/python-modules/oracledb/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

43 lines
878 B
Nix

{ lib
, buildPythonPackage
, cryptography
, cython_3
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "oracledb";
version = "1.4.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-4o7ZBG8nNdwt1bvN82Z/KE44Tg7H7tPus3mPqKfUfjY=";
};
nativeBuildInputs = [
cython_3
];
propagatedBuildInputs = [
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 ];
};
}