From 060ba731b68f45231147a81e99e69cffb7d0cc38 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 16:39:10 -0400 Subject: [PATCH] pythonPackages.github-webhook: refactor move to python-modules --- .../python-modules/github-webhook/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +-------------- 2 files changed, 29 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/github-webhook/default.nix diff --git a/pkgs/development/python-modules/github-webhook/default.nix b/pkgs/development/python-modules/github-webhook/default.nix new file mode 100644 index 000000000000..99af2830167f --- /dev/null +++ b/pkgs/development/python-modules/github-webhook/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchgit +, flask +}: + +buildPythonPackage rec { + pname = "github-webhook"; + version = "unstable-2016-03-11"; + + # There is a PyPI package but an older one. + src = fetchgit { + url = "https://github.com/bloomberg/python-github-webhook.git"; + rev = "ca1855479ee59c4373da5425dbdce08567605d49"; + sha256 = "0mqwig9281iyzbphp1d21a4pqdrf98vs9k8lqpqx6spzgqaczx5f"; + }; + + propagatedBuildInputs = [ flask ]; + # No tests + doCheck = false; + + meta = with stdenv.lib; { + description = "A framework for writing webhooks for GitHub"; + license = licenses.mit; + homepage = https://github.com/bloomberg/python-github-webhook; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9362aefe6756..369c6945562d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2388,27 +2388,7 @@ in { github3_py = callPackage ../development/python-modules/github3_py { }; - github-webhook = buildPythonPackage rec { - name = "github-webhook-${version}"; - version = "unstable-2016-03-11"; - - # There is a PyPI package but an older one. - src = pkgs.fetchgit { - url = "https://github.com/bloomberg/python-github-webhook.git"; - rev = "ca1855479ee59c4373da5425dbdce08567605d49"; - sha256 = "0mqwig9281iyzbphp1d21a4pqdrf98vs9k8lqpqx6spzgqaczx5f"; - }; - - propagatedBuildInputs = with self; [ flask ]; - # No tests - doCheck = false; - - meta = { - description = "A framework for writing webhooks for GitHub"; - license = licenses.mit; - homepage = https://github.com/bloomberg/python-github-webhook; - }; - }; + github-webhook = callPackage ../development/python-modules/github-webhook { }; goobook = buildPythonPackage rec { name = "goobook-1.9";