From d4cf05070c2802310bc2b227a3b84a7ba81133ea Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 12:47:57 -0400 Subject: [PATCH] pythonPackages.daemonize: refactor move to python-modules --- .../python-modules/daemonize/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 10 +-------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 pkgs/development/python-modules/daemonize/default.nix diff --git a/pkgs/development/python-modules/daemonize/default.nix b/pkgs/development/python-modules/daemonize/default.nix new file mode 100644 index 000000000000..68863c61ada0 --- /dev/null +++ b/pkgs/development/python-modules/daemonize/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "daemonize"; + version = "2.4.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0y139sq657bpzfv6k0aqm4071z4s40i6ybpni9qvngvdcz6r86n2"; + }; + + meta = with stdenv.lib; { + description = "Library to enable your code run as a daemon process on Unix-like systems"; + homepage = https://github.com/thesharp/daemonize; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8fdd339903ad..b44252464b8a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4369,15 +4369,7 @@ in { canonicaljson = callPackage ../development/python-modules/canonicaljson { }; - daemonize = buildPythonPackage rec { - name = "daemonize-${version}"; - version = "2.4.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/daemonize/daemonize-${version}.tar.gz"; - sha256 = "0y139sq657bpzfv6k0aqm4071z4s40i6ybpni9qvngvdcz6r86n2"; - }; - }; + daemonize = callPackage ../development/python-modules/daemonize { }; pydenticon = buildPythonPackage rec { name = "pydenticon-${version}";