From 8afd718c0a62cd16805e738f6dc05240e548902b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 00:33:09 -0400 Subject: [PATCH] pythonPackages.pymysqlsa: refactor move to python-modules --- .../python-modules/pymysqlsa/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +------------ 2 files changed, 26 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/pymysqlsa/default.nix diff --git a/pkgs/development/python-modules/pymysqlsa/default.nix b/pkgs/development/python-modules/pymysqlsa/default.nix new file mode 100644 index 000000000000..0167fe00ea7c --- /dev/null +++ b/pkgs/development/python-modules/pymysqlsa/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pymysql +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "pymysqlsa"; + version = "1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "a2676bce514a29b2d6ab418812259b0c2f7564150ac53455420a20bd7935314a"; + }; + + propagatedBuildInputs = [ pymysql sqlalchemy ]; + + meta = with stdenv.lib; { + description = "PyMySQL dialect for SQL Alchemy"; + homepage = https://pypi.python.org/pypi/pymysql_sa; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 252119b1e72a..0540d07f035e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2887,23 +2887,7 @@ in { pympler = callPackage ../development/python-modules/pympler { }; - pymysqlsa = self.buildPythonPackage rec { - name = "pymysqlsa-${version}"; - version = "1.0"; - - propagatedBuildInputs = with self; [ pymysql sqlalchemy ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pymysql_sa/pymysql_sa-1.0.tar.gz"; - sha256 = "a2676bce514a29b2d6ab418812259b0c2f7564150ac53455420a20bd7935314a"; - }; - - meta = { - description = "PyMySQL dialect for SQL Alchemy"; - homepage = https://pypi.python.org/pypi/pymysql_sa; - license = licenses.mit; - }; - }; + pymysqlsa = callPackage ../development/python-modules/pymysqlsa { }; monosat = disabledIf (!isPy3k) (pkgs.monosat.python { inherit buildPythonPackage; inherit (self) cython; });