d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, fetchPypi
|
|
, appdirs
|
|
, cryptography
|
|
, dogpile-cache
|
|
, jmespath
|
|
, jsonpatch
|
|
, keystoneauth1
|
|
, munch
|
|
, netifaces
|
|
, os-service-types
|
|
, pbr
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requestsexceptions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openstacksdk";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NhUSnttnyCr70aFwbpFf+mjg7r/JnJA8NDqsZRfdWFg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
cryptography
|
|
dogpile-cache
|
|
jmespath
|
|
jsonpatch
|
|
keystoneauth1
|
|
munch
|
|
netifaces
|
|
os-service-types
|
|
pbr
|
|
requestsexceptions
|
|
pyyaml
|
|
];
|
|
|
|
# Checks moved to 'passthru.tests' to workaround slowness
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
tests = callPackage ./tests.nix { };
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"openstack"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An SDK for building applications to work with OpenStack";
|
|
homepage = "https://github.com/openstack/openstacksdk";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|