pythonPackages.pyodbc: move to python-modules/

Easier maintenance when expressions are in separate files.
This commit is contained in:
Bjørn Forsman 2017-10-29 11:45:46 +01:00
parent 013da4ef66
commit 7357b369d5
2 changed files with 24 additions and 22 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.19";
name = "${pname}-${version}";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
sha256 = "05mkaxbi9n02bpr3l0qnyfb3458f35hk71bq8jmadikp3h8al7dg";
};
buildInputs = [ libiodbc ];
meta = with stdenv.lib; {
description = "Python ODBC module to connect to almost any database";
homepage = "https://github.com/mkleehammer/pyodbc";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View File

@ -17039,28 +17039,7 @@ in {
};
};
pyodbc = buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.19";
name = "${pname}-${version}";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
sha256 = "05mkaxbi9n02bpr3l0qnyfb3458f35hk71bq8jmadikp3h8al7dg";
};
buildInputs = with self; [ pkgs.libiodbc ];
meta = {
description = "Python ODBC module to connect to almost any database";
homepage = "https://github.com/mkleehammer/pyodbc";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
pyodbc = callPackage ../development/python-modules/pyodbc { };
pyocr = callPackage ../development/python-modules/pyocr { };