From 8ea312f7714115d8c0ab18684ed08dc8e53a360b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 15:31:19 -0400 Subject: [PATCH] pythonPackages.eventlib: refactor move to python-modules --- .../python-modules/eventlib/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 +--------------- 2 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 pkgs/development/python-modules/eventlib/default.nix diff --git a/pkgs/development/python-modules/eventlib/default.nix b/pkgs/development/python-modules/eventlib/default.nix new file mode 100644 index 000000000000..147e18d45f42 --- /dev/null +++ b/pkgs/development/python-modules/eventlib/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, isPy3k +, fetchdarcs +, greenlet +}: + +buildPythonPackage rec { + pname = "python-eventlib"; + version = "0.2.2"; + # Judging from SyntaxError + disabled = isPy3k; + + src = fetchdarcs { + url = "http://devel.ag-projects.com/repositories/${pname}"; + rev = "release-${version}"; + sha256 = "1zxhpq8i4jwsk7wmfncqfm211hqikj3hp38cfv509924bi76wak8"; + }; + + propagatedBuildInputs = [ greenlet ]; + + doCheck = false; + + meta = with stdenv.lib; { + description = "Eventlib bindings for python"; + homepage = "http://ag-projects.com/"; + license = licenses.lgpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4578dd170078..b9bc8db9b8ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1736,31 +1736,7 @@ in { eve = callPackage ../development/python-modules/eve {}; - eventlib = buildPythonPackage rec { - pname = "python-eventlib"; - name = "${pname}-${version}"; - version = "0.2.2"; - - # Judging from SyntaxError - disabled = isPy3k; - - src = pkgs.fetchdarcs { - url = "http://devel.ag-projects.com/repositories/${pname}"; - rev = "release-${version}"; - sha256 = "1zxhpq8i4jwsk7wmfncqfm211hqikj3hp38cfv509924bi76wak8"; - }; - - propagatedBuildInputs = with self; [ greenlet ]; - - doCheck = false; - - meta = { - description = "Eventlib bindings for python"; - homepage = "http://ag-projects.com/"; - license = licenses.lgpl2; - platforms = platforms.all; - }; - }; + eventlib = callPackage ../development/python-modules/eventlib { }; events = callPackage ../development/python-modules/events { };