From be1cb47ab805b7b676b521481221f31944fc47dd Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 10 Mar 2018 08:14:36 +0100 Subject: [PATCH] pymongo_2_9_1: Move to own file --- .../python-modules/pymongo/2_9_1.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +---------------- 2 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/pymongo/2_9_1.nix diff --git a/pkgs/development/python-modules/pymongo/2_9_1.nix b/pkgs/development/python-modules/pymongo/2_9_1.nix new file mode 100644 index 0000000000000..a6370ab17a61f --- /dev/null +++ b/pkgs/development/python-modules/pymongo/2_9_1.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "pymongo"; + version = "2.9.1"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1nrr1fxyrlxd69bgxl7bvaj2j4z7v3zaciij5sbhxg0vqiz6ny50"; + }; + + # Tests call a running mongodb instance + doCheck = false; + + meta = with stdenv.lib; { + homepage = "https://github.com/mongodb/mongo-python-driver"; + license = licenses.asl20; + description = "Python driver for MongoDB"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa74176631594..1c9bacf6abcfb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14275,24 +14275,7 @@ in { pymongo = callPackage ../development/python-modules/pymongo {}; - pymongo_2_9_1 = buildPythonPackage rec { - name = "pymongo-2.9.1"; - version = "2.9.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pymongo/${name}.tar.gz"; - sha256 = "1nrr1fxyrlxd69bgxl7bvaj2j4z7v3zaciij5sbhxg0vqiz6ny50"; - }; - - # Tests call a running mongodb instance - doCheck = false; - - meta = { - homepage = "http://github.com/mongodb/mongo-python-driver"; - license = licenses.asl20; - description = "Python driver for MongoDB "; - }; - }; + pymongo_2_9_1 = callPackage ../development/python-modules/pymongo/2_9_1.nix {}; pyperclip = buildPythonPackage rec { version = "1.5.27";