From 4f7d4bca11e71b53f5fe861769f2e73d5cdf92d9 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 09:33:43 -0400 Subject: [PATCH] pythonPackages.pyfantom: refactor move to python-modules --- .../python-modules/pyfantom/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +-------------- 2 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/pyfantom/default.nix diff --git a/pkgs/development/python-modules/pyfantom/default.nix b/pkgs/development/python-modules/pyfantom/default.nix new file mode 100644 index 000000000000..1abf04079880 --- /dev/null +++ b/pkgs/development/python-modules/pyfantom/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchgit +}: + +buildPythonPackage rec { + pname = "pyfantom"; + version = "unstable-2013-12-18"; + + src = fetchgit { + url = "http://git.ni.fr.eu.org/pyfantom.git"; + sha256 = "1m53n8bxslq5zmvcf7i1xzsgq5bdsf1z529br5ypmj5bg0s86j4q"; + }; + + # No tests included + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://pyfantom.ni.fr.eu.org/; + description = "Wrapper for the LEGO Mindstorms Fantom Driver"; + license = licenses.gpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e2af426b39f..67f7eb9dd9dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3311,24 +3311,7 @@ in { pyext = callPackage ../development/python-modules/pyext { }; - pyfantom = buildPythonPackage rec { - name = "pyfantom-${version}"; - version = "unstable-2013-12-18"; - - src = pkgs.fetchgit { - url = "http://git.ni.fr.eu.org/pyfantom.git"; - sha256 = "1m53n8bxslq5zmvcf7i1xzsgq5bdsf1z529br5ypmj5bg0s86j4q"; - }; - - # No tests included - doCheck = false; - - meta = { - homepage = http://pyfantom.ni.fr.eu.org/; - description = "Wrapper for the LEGO Mindstorms Fantom Driver"; - license = licenses.gpl2; - }; - }; + pyfantom = callPackage ../development/python-modules/pyfantom { }; pyfftw = callPackage ../development/python-modules/pyfftw { };