uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
58
pkgs/development/python-modules/oci/default.nix
Normal file
58
pkgs/development/python-modules/oci/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, certifi
|
||||
, circuitbreaker
|
||||
, configparser
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, pyopenssl
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "oci";
|
||||
version = "2.63.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oracle";
|
||||
repo = "oci-python-sdk";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EIn7BRXsVf7R2ij8iK3hrNWnLehxKDBlk96lAhFh0xw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
certifi
|
||||
circuitbreaker
|
||||
configparser
|
||||
cryptography
|
||||
pyopenssl
|
||||
python-dateutil
|
||||
pytz
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "configparser==4.0.2 ; python_version < '3'" "configparser" \
|
||||
--replace "cryptography>=3.2.1,<=3.4.7" "cryptography" \
|
||||
--replace "pyOpenSSL>=17.5.0,<=19.1.0" "pyOpenSSL"
|
||||
'';
|
||||
|
||||
# Tests fail: https://github.com/oracle/oci-python-sdk/issues/164
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"oci"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Oracle Cloud Infrastructure Python SDK";
|
||||
homepage = "https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/";
|
||||
license = with licenses; [ asl20 /* or */ upl ];
|
||||
maintainers = with maintainers; [ ilian ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue