From f0e62b79fcdf6701c59c04395b8cafb6a8300e19 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 17:15:09 -0400 Subject: [PATCH] pythonPAckages.simpleai: refactor move to python-modules --- .../python-modules/simpleai/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +-------------- 2 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/simpleai/default.nix diff --git a/pkgs/development/python-modules/simpleai/default.nix b/pkgs/development/python-modules/simpleai/default.nix new file mode 100644 index 000000000000..3d4bdf3968fc --- /dev/null +++ b/pkgs/development/python-modules/simpleai/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, numpy +, isPy3k +}: + +buildPythonPackage rec { + version = "0.7.11"; + pname = "simpleai"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "03frjc5jxsz9xm24jz7qa4hcp0dicgazrxkdsa2rsnir672lwkwz"; + }; + + propagatedBuildInputs = [ numpy ]; + + #No tests in archive + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/simpleai-team/simpleai; + description = "This lib implements many of the artificial intelligence algorithms described on the book 'Artificial Intelligence, a Modern Approach'"; + maintainers = with maintainers; [ NikolaMandic ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4698e15361d3..ab1b1fc04d6e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4589,28 +4589,7 @@ in { tflearn = callPackage ../development/python-modules/tflearn { }; - simpleai = buildPythonPackage rec { - version = "0.7.11"; - name = "simpleai-${version}"; - - src = pkgs.fetchurl { - url= "https://pypi.python.org/packages/source/s/simpleai/${name}.tar.gz"; - sha256 = "03frjc5jxsz9xm24jz7qa4hcp0dicgazrxkdsa2rsnir672lwkwz"; - }; - - propagatedBuildInputs = with self; [ numpy ]; - - disabled = isPy3k; - - #No tests in archive - doCheck = false; - - meta = { - homepage = https://github.com/simpleai-team/simpleai; - description = "This lib implements many of the artificial intelligence algorithms described on the book 'Artificial Intelligence, a Modern Approach'"; - maintainers = with maintainers; [ NikolaMandic ]; - }; - }; + simpleai = callPackage ../development/python-modules/simpleai { }; word2vec = buildPythonPackage rec { name = "word2vec-${version}";