git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.sybase: move to python-modules
commite4c7cfc9eb851a5ed92644c5e93837d186cb9edc authorMarti Serra <marti.serra.coscollano@gmail.com> dateWed 8 Nov 2017, 15:49 (9 years ago) parenteafd703
2 files changed+31−24
pkgs/development/python-modules/sybase/default.nix+30 pkgs/top-level/python-packages.nix+1−24
pkgs/development/python-modules/sybase/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchurl
4+, isPy3k
5+, freetds
6+}:
7+
8+buildPythonPackage rec {
9+ name = "python-sybase-${version}";
10+ version = "0.40pre2";
11+ disabled = isPy3k;
12+
13+ src = fetchurl {
14+ url = "https://sourceforge.net/projects/python-sybase/files/python-sybase/${name}/${name}.tar.gz";
15+ sha256 = "0pm88hyn18dy7ljam4mdx9qqgmgraf2zy2wl02g5vsjl4ncvq90j";
16+ };
17+
18+ propagatedBuildInputs = [ freetds ];
19+
20+ SYBASE = freetds;
21+ setupPyBuildFlags = [ "-DHAVE_FREETDS" "-UWANT_BULKCOPY" ];
22+
23+ meta = with stdenv.lib; {
24+ description = "The Sybase module provides a Python interface to the Sybase relational database system";
25+ homepage = http://python-sybase.sourceforge.net;
26+ license = licenses.bsd3;
27+ maintainers = with maintainers; [ veprbl ];
28+ platforms = platforms.unix;
29+ };
30+}
pkgs/top-level/python-packages.nix+1−24
@@ -356,30 +356,7 @@ in {
356356
357357 python-uinput = callPackage ../development/python-modules/python-uinput {};
358358
359− python-sybase = buildPythonPackage rec {
360− name = "python-sybase-${version}";
361− version = "0.40pre2";
362− disabled = isPy3k;
363−
364− src = pkgs.fetchurl {
365− url = "https://sourceforge.net/projects/python-sybase/files/python-sybase/${name}/${name}.tar.gz";
366− sha256 = "0pm88hyn18dy7ljam4mdx9qqgmgraf2zy2wl02g5vsjl4ncvq90j";
367− };
368−
369− propagatedBuildInputs = [ pkgs.freetds ];
370−
371− SYBASE = pkgs.freetds;
372− setupPyBuildFlags = [ "-DHAVE_FREETDS" "-UWANT_BULKCOPY" ];
373−
374− meta = {
375− description = "The Sybase module provides a Python interface to the Sybase relational database system";
376− homepage = http://python-sybase.sourceforge.net;
377− license = licenses.bsd3;
378− maintainers = with maintainers; [ veprbl ];
379− platforms = platforms.unix;
380− };
381− };
382−
359+ python-sybase = callPackage ../development/python-modules/sybase {};
383360
384361 alot = buildPythonPackage rec {
385362 rev = "0.5.1";