pythonPackages.pyodbc: move to python-modules/
Easier maintenance when expressions are in separate files.
This commit is contained in:
parent
013da4ef66
commit
7357b369d5
23
pkgs/development/python-modules/pyodbc/default.nix
Normal file
23
pkgs/development/python-modules/pyodbc/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user