git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.hcloud: init at 1.6.1
commit2ac643c241bb13d52021efc3ac524f202ec88524 authorOlli Helenius <liff@iki.fi> dateThu 26 Sep 2019, 14:50 (7 years ago) parent382f286
2 files changed+40
pkgs/development/python-modules/hcloud/default.nix+38 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/hcloud/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, future
5+, requests
6+, python-dateutil
7+, flake8
8+, isort
9+, mock
10+, pytest
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "hcloud";
15+ version = "1.6.1";
16+
17+ src = fetchPypi {
18+ inherit pname version;
19+ sha256 = "1skqq36k1dm7mngfg9c93pb1rdvmbapc0cv8zj00hnm63r67hmrj";
20+ };
21+
22+ propagatedBuildInputs = [ future requests python-dateutil ];
23+
24+ checkInputs = [ flake8 isort mock pytest ];
25+
26+ # Skip integration tests since they require a separate external fake API endpoint.
27+ checkPhase = ''
28+ pytest --ignore=tests/integration
29+ '';
30+
31+ meta = with lib; {
32+ description = "Official Hetzner Cloud python library";
33+ homepage = "https://github.com/hetznercloud/hcloud-python";
34+ license = licenses.mit;
35+ platforms = platforms.all;
36+ maintainers = with maintainers; [ liff ];
37+ };
38+}
pkgs/top-level/python-packages.nix+2
@@ -6288,6 +6288,8 @@ in {
62886288 runway-python = callPackage ../development/python-modules/runway-python { };
62896289
62906290 pyprof2calltree = callPackage ../development/python-modules/pyprof2calltree { };
6291+
6292+ hcloud = callPackage ../development/python-modules/hcloud { };
62916293});
62926294
62936295in fix' (extends overrides packages)