diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 11:45:46 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 11:51:23 +0100 |
commit | 7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4 (patch) | |
tree | efe550a820042d28ef32aeb09986a5a7100d29aa /pkgs/development/python-modules/pyodbc | |
parent | 013da4ef669359ee0f5e8605870cb618e3579f0d (diff) | |
download | nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar.gz nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar.bz2 nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar.lz nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar.xz nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.tar.zst nixlib-7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4.zip |
pythonPackages.pyodbc: move to python-modules/
Easier maintenance when expressions are in separate files.
Diffstat (limited to 'pkgs/development/python-modules/pyodbc')
-rw-r--r-- | pkgs/development/python-modules/pyodbc/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyodbc/default.nix b/pkgs/development/python-modules/pyodbc/default.nix new file mode 100644 index 000000000000..c09e15f4bfb3 --- /dev/null +++ b/pkgs/development/python-modules/pyodbc/default.nix @@ -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 ]; + }; +} |