pythonPackages.pymysqlsa: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 00:33:09 -04:00 committed by Frederik Rietdijk
parent 1170733244
commit 8afd718c0a
2 changed files with 26 additions and 17 deletions

View File

@ -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;
};
}

View File

@ -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; });