From e4c239aad9743235d40ef920d49dfab2e0429100 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 09:12:10 -0400 Subject: [PATCH] pythonPackages.pydispatcher: refactor move to python-modules --- .../python-modules/pydispatcher/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +------------- 2 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/pydispatcher/default.nix diff --git a/pkgs/development/python-modules/pydispatcher/default.nix b/pkgs/development/python-modules/pydispatcher/default.nix new file mode 100644 index 000000000000..29d464587a0a --- /dev/null +++ b/pkgs/development/python-modules/pydispatcher/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + version = "2.0.5"; + pname = "pydispatcher"; + + src = fetchPypi { + inherit pname version; + sha256 = "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m"; + }; + + buildInputs = [ pytest ]; + + checkPhase = '' + py.test + ''; + + meta = with stdenv.lib; { + homepage = http://pydispatcher.sourceforge.net/; + description = "Signal-registration and routing infrastructure for use in multiple contexts"; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a2c04b3929bf..c11a884c3d91 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3295,26 +3295,7 @@ in { pycurl2 = callPackage ../development/python-modules/pycurl2 { }; - pydispatcher = buildPythonPackage (rec { - version = "2.0.5"; - name = "pydispatcher-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/P/PyDispatcher/PyDispatcher-${version}.tar.gz"; - sha256 = "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m"; - }; - - buildInputs = with self; [ pytest ]; - - checkPhase = '' - py.test - ''; - - meta = { - homepage = http://pydispatcher.sourceforge.net/; - description = "Signal-registration and routing infrastructure for use in multiple contexts"; - license = licenses.bsd3; - }; - }); + pydispatcher = callPackage ../development/python-modules/pydispatcher { }; pydot = callPackage ../development/python-modules/pydot { };