From f82b1b758002842880873b68dc3792c1605d8754 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 12:13:21 -0400 Subject: [PATCH] pythonPackges.pykka: refactor move to python-modules --- .../python-modules/pykka/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +-------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/pykka/default.nix diff --git a/pkgs/development/python-modules/pykka/default.nix b/pkgs/development/python-modules/pykka/default.nix new file mode 100644 index 000000000000..4fe7816d4fdc --- /dev/null +++ b/pkgs/development/python-modules/pykka/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchgit +}: + +buildPythonPackage rec { + pname = "pykka"; + version = "1.2.0"; + + src = fetchgit { + url = "https://github.com/jodal/pykka.git"; + rev = "refs/tags/v${version}"; + sha256 = "0qlfw1054ap0cha1m6dbnq51kjxqxaf338g7jwnwy33b3gr8x0hg"; + }; + + # There are no tests + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://www.pykka.org; + description = "A Python implementation of the actor model"; + license = licenses.asl20; + maintainers = with maintainers; [ rickynils ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 80a0ca8b82ae..d06351ce218e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4310,26 +4310,7 @@ in { pyspotify = callPackage ../development/python-modules/pyspotify { }; - pykka = buildPythonPackage rec { - name = "pykka-${version}"; - - version = "1.2.0"; - - src = pkgs.fetchgit { - url = "https://github.com/jodal/pykka.git"; - rev = "refs/tags/v${version}"; - sha256 = "0qlfw1054ap0cha1m6dbnq51kjxqxaf338g7jwnwy33b3gr8x0hg"; - }; - - # There are no tests - doCheck = false; - - meta = { - homepage = http://www.pykka.org; - description = "A Python implementation of the actor model"; - maintainers = with maintainers; [ rickynils ]; - }; - }; + pykka = callPackage ../development/python-modules/pykka { }; ws4py = callPackage ../development/python-modules/ws4py {};