nixpkgs-suyu/pkgs/development/python-modules/hcloud/default.nix
Olli Helenius 530be5f459
pythonPackages.hcloud: 1.12.0 -> 1.13.0
This release drops support for Python 2.7.
2021-07-19 08:24:04 +03:00

40 lines
849 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, future
, requests
, python-dateutil
, flake8
, isort
, mock
, pytest
, isPy27
}:
buildPythonPackage rec {
pname = "hcloud";
version = "1.13.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0f84nwr3ddzivlnswwmhvm3lgq9fy3n7nryy93xqpk5nxcd1ybpn";
};
propagatedBuildInputs = [ future requests python-dateutil ];
checkInputs = [ flake8 isort mock pytest ];
# Skip integration tests since they require a separate external fake API endpoint.
checkPhase = ''
pytest --ignore=tests/integration
'';
meta = with lib; {
description = "Official Hetzner Cloud python library";
homepage = "https://github.com/hetznercloud/hcloud-python";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ liff ];
};
}