git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pyodbc: move to python-modules/

Easier maintenance when expressions are in separate files.

commit7357b369d51dee7e9eadf60d0da88ffb6f1ed6a4 authorBjørn Forsman <bjorn.forsman@gmail.com> dateSun 29 Oct 2017, 11:45 (9 years ago) parent013da4e
2 files changed+24−22
pkgs/development/python-modules/pyodbc/default.nix+23 pkgs/top-level/python-packages.nix+1−22
pkgs/development/python-modules/pyodbc/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPyPy, libiodbc }:
2+
3+buildPythonPackage rec {
4+ pname = "pyodbc";
5+ version = "4.0.19";
6+ name = "${pname}-${version}";
7+ disabled = isPyPy; # use pypypdbc instead
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "05mkaxbi9n02bpr3l0qnyfb3458f35hk71bq8jmadikp3h8al7dg";
12+ };
13+
14+ buildInputs = [ libiodbc ];
15+
16+ meta = with stdenv.lib; {
17+ description = "Python ODBC module to connect to almost any database";
18+ homepage = "https://github.com/mkleehammer/pyodbc";
19+ license = licenses.mit;
20+ platforms = platforms.linux;
21+ maintainers = with maintainers; [ bjornfor ];
22+ };
23+}
pkgs/top-level/python-packages.nix+1−22
@@ -17039,28 +17039,7 @@ in {
1703917039 };
1704017040 };
1704117041
17042−
17043− pyodbc = buildPythonPackage rec {
17044− pname = "pyodbc";
17045− version = "4.0.19";
17046− name = "${pname}-${version}";
17047− disabled = isPyPy; # use pypypdbc instead
17048−
17049− src = fetchPypi {
17050− inherit pname version;
17051− sha256 = "05mkaxbi9n02bpr3l0qnyfb3458f35hk71bq8jmadikp3h8al7dg";
17052− };
17053−
17054− buildInputs = with self; [ pkgs.libiodbc ];
17055−
17056− meta = {
17057− description = "Python ODBC module to connect to almost any database";
17058− homepage = "https://github.com/mkleehammer/pyodbc";
17059− license = licenses.mit;
17060− platforms = platforms.linux;
17061− maintainers = with maintainers; [ bjornfor ];
17062− };
17063− };
17042+ pyodbc = callPackage ../development/python-modules/pyodbc { };
1706417043
1706517044 pyocr = callPackage ../development/python-modules/pyocr { };
1706617045