From 1a4f32c3f7207f725e825261a562b289c273dcc1 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 17:12:21 -0400 Subject: [PATCH] pythonPackages.zerobin: refactor move to python-modules --- .../python-modules/zerobin/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 27 +-------------- 2 files changed, 34 insertions(+), 26 deletions(-) create mode 100644 pkgs/development/python-modules/zerobin/default.nix diff --git a/pkgs/development/python-modules/zerobin/default.nix b/pkgs/development/python-modules/zerobin/default.nix new file mode 100644 index 000000000000..d1cab88b45b8 --- /dev/null +++ b/pkgs/development/python-modules/zerobin/default.nix @@ -0,0 +1,33 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +, cherrypy +, bottle +, lockfile +, clize +}: + +buildPythonPackage rec { + pname = "zerobin"; + version = "20160108"; + + src = fetchFromGitHub { + owner = "sametmax"; + repo = "0bin"; + rev = "7da1615"; + sha256 = "1pzcwy454kn5216pvwjqzz311s6jbh7viw9s6kw4xps6f5h44bid"; + }; + + propagatedBuildInputs = [ cherrypy bottle lockfile clize ]; + + # zerobin doesn't have any tests, but includes a copy of cherrypy which + # can wrongly fail the check phase. + doCheck = false; + + meta = with stdenv.lib; { + description = "A client side encrypted pastebin"; + homepage = https://0bin.net/; + license = licenses.wtfpl; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0d8bada4f732..4698e15361d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4565,32 +4565,7 @@ in { clize = callPackage ../development/python-modules/clize { }; - zerobin = buildPythonPackage rec { - name = "zerobin-${version}"; - version = "20160108"; - - src = pkgs.fetchFromGitHub { - owner = "sametmax"; - repo = "0bin"; - rev = "7da1615"; - sha256 = "1pzcwy454kn5216pvwjqzz311s6jbh7viw9s6kw4xps6f5h44bid"; - }; - - propagatedBuildInputs = with self; [ - cherrypy - bottle - lockfile - clize - ]; - # zerobin doesn't have any tests, but includes a copy of cherrypy which - # can wrongly fail the check phase. - doCheck = false; - meta = { - description = "A client side encrypted pastebin"; - homepage = https://0bin.net/; - license = licenses.wtfpl; - }; - }; + zerobin = callPackage ../development/python-modules/zerobin { }; tensorflow-tensorboard = callPackage ../development/python-modules/tensorflow-tensorboard { };