From 3575e894b2d3fb465b38ffd83ce087b88c5a8d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 14 Jul 2018 13:37:33 +0200 Subject: [PATCH] python.pkgs.events: 0.2.1 -> 0.3 --- .../python-modules/events/default.nix | 17 +++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------------- 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/events/default.nix diff --git a/pkgs/development/python-modules/events/default.nix b/pkgs/development/python-modules/events/default.nix new file mode 100644 index 000000000000..28e7726a829b --- /dev/null +++ b/pkgs/development/python-modules/events/default.nix @@ -0,0 +1,17 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "Events"; + version = "0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "f4d9c41a5c160ce504278f219fe56f44242ca63794a0ad638b52d1e087ac2a41"; + }; + + meta = with lib; { + homepage = http://events.readthedocs.org; + description = "Bringing the elegance of C# EventHanlder to Python"; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ec5f7714992c..5eb33fa96d96 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2417,22 +2417,7 @@ in { }; }; - events = buildPythonPackage rec { - name = "Events-${version}"; - version = "0.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/E/Events/${name}.tar.gz"; - sha256 = "0rymyfvarjdi2fdhfz2iqmp4wgd2n2sm0p2mx44c3spm7ylnqzqa"; - }; - - meta = { - homepage = "http://events.readthedocs.org"; - description = "Bringing the elegance of C# EventHanlder to Python"; - license = licenses.bsd3; - }; - }; - + events = callPackage ../development/python-modules/events { }; eyeD3 = buildPythonPackage rec { version = "0.7.8";