pythonPackages.pyodbc: move to python-modules/
Easier maintenance when expressions are in separate files.
This commit is contained in:
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user