43 lines
873 B
Nix
43 lines
873 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, pythonOlder
|
||
|
, cryptography
|
||
|
, cython
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "oracledb";
|
||
|
version = "1.2.2";
|
||
|
format = "setuptools";
|
||
|
|
||
|
disabled = pythonOlder "3.6";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
hash = "sha256-3Z9jCE5EZCtISkay/PtPySHzn6z0lKG6sAYo+mQJ9Pw=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cython
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
cryptography
|
||
|
];
|
||
|
|
||
|
doCheck = false; # Checks need an Oracle database
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|