python39Packages.swift: ini at 2.28.0
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, boto3
|
||||
, cryptography
|
||||
, eventlet
|
||||
, greenlet
|
||||
, iana-etc
|
||||
, libredirect
|
||||
, lxml
|
||||
, mock
|
||||
, netifaces
|
||||
, pastedeploy
|
||||
, pbr
|
||||
, pyeclib
|
||||
, requests
|
||||
, setuptools
|
||||
, six
|
||||
, stestr
|
||||
, swiftclient
|
||||
, xattr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "swift";
|
||||
version = "2.28.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "79a216498a842226f71e9dfbbce4dba4a5718cda9b2be92b6e0aa21df977f70d";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# files requires boto which is incompatible with python 3.9
|
||||
rm test/functional/s3api/{__init__.py,s3_test_client.py}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pbr ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
eventlet
|
||||
greenlet
|
||||
lxml
|
||||
netifaces
|
||||
pastedeploy
|
||||
pyeclib
|
||||
requests
|
||||
setuptools
|
||||
six
|
||||
xattr
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
boto3
|
||||
mock
|
||||
stestr
|
||||
swiftclient
|
||||
];
|
||||
|
||||
# a lot of tests currently fail while establishing a connection
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
echo "nameserver 127.0.0.1" > resolv.conf
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
|
||||
export LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||
|
||||
export SWIFT_TEST_CONFIG_FILE=test/sample.conf
|
||||
|
||||
stestr run
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "swift" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenStack Object Storage";
|
||||
homepage = "https://github.com/openstack/swift";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.openstack.members;
|
||||
};
|
||||
}
|
||||
@@ -8821,6 +8821,8 @@ in {
|
||||
|
||||
swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
|
||||
|
||||
swift = callPackage ../development/python-modules/swift { };
|
||||
|
||||
swisshydrodata = callPackage ../development/python-modules/swisshydrodata { };
|
||||
|
||||
swspotify = callPackage ../development/python-modules/swspotify { };
|
||||
|
||||
Reference in New Issue
Block a user