python3Packages.oracledb: fix build and modernize

pyrox.dev 6499992b 22898b08

verified
Changed files
+16 -8
pkgs
development
python-modules
oracledb
+16 -8
pkgs/development/python-modules/oracledb/default.nix
···
buildPythonPackage,
cryptography,
cython,
-
fetchPypi,
pythonOlder,
setuptools,
wheel,
···
version = "3.3.0";
pyproject = true;
-
disabled = pythonOlder "3.7";
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-6DDTVEoVeClryqVMboyK4QpYx9tGfFKMSyetv5yLTLA=";
};
build-system = [
cython
···
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 ];
};
}
···
buildPythonPackage,
cryptography,
cython,
+
fetchFromGitHub,
pythonOlder,
setuptools,
wheel,
···
version = "3.3.0";
pyproject = true;
+
disabled = pythonOlder "3.9";
+
src = fetchFromGitHub {
+
owner = "oracle";
+
repo = "python-oracledb";
+
tag = "v${version}";
+
fetchSubmodules = true;
+
hash = "sha256-SHIEl4pzuQBJ02KRPmOydFtmVD9qF3LGk9WPiDSpVzQ=";
};
+
+
postPatch = ''
+
substituteInPlace pyproject.toml \
+
--replace-fail "cython == 3.1" "cython"
+
'';
build-system = [
cython
···
pythonImportsCheck = [ "oracledb" ];
+
meta = {
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 lib.licenses; [
asl20 # and or
upl
];
+
maintainers = with lib.maintainers; [ harvidsen ];
};
}