From a340c88b2d77a4995a3dfc0c08383e2f7e3a1474 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 16:54:03 -0400 Subject: [PATCH] pythonPackages.hetzner: refactor move to python-modules --- .../python-modules/hetzner/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +--------------- 2 files changed, 25 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/hetzner/default.nix diff --git a/pkgs/development/python-modules/hetzner/default.nix b/pkgs/development/python-modules/hetzner/default.nix new file mode 100644 index 000000000000..ccf4e1a5ba7f --- /dev/null +++ b/pkgs/development/python-modules/hetzner/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "hetzner"; + version = "0.8.1"; + + src = fetchFromGitHub { + repo = "hetzner"; + owner = "aszlig"; + rev = "v${version}"; + sha256 = "1xd1klvjskv0pg8ginih597jkk491a55b8dq80dsm61m5sbsx3vq"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/RedMoonStudios/hetzner"; + description = "High-level Python API for accessing the Hetzner robot"; + license = licenses.bsd3; + maintainers = with maintainers; [ aszlig ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6c14e4ccedba..c5252c3d38d4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2446,25 +2446,7 @@ in { hcs_utils = callPackage ../development/python-modules/hcs_utils { }; - hetzner = buildPythonPackage rec { - name = "hetzner-${version}"; - version = "0.8.1"; - - src = pkgs.fetchFromGitHub { - repo = "hetzner"; - owner = "aszlig"; - rev = "v${version}"; - sha256 = "1xd1klvjskv0pg8ginih597jkk491a55b8dq80dsm61m5sbsx3vq"; - }; - - meta = { - homepage = "https://github.com/RedMoonStudios/hetzner"; - description = "High-level Python API for accessing the Hetzner robot"; - license = licenses.bsd3; - maintainers = with maintainers; [ aszlig ]; - }; - }; - + hetzner = callPackage ../development/python-modules/hetzner { }; htmllaundry = buildPythonPackage rec { name = "htmllaundry-2.0";