about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-07-28 14:05:23 +0700
committerwisut hantanong <wizzup@gmail.com>2017-07-28 16:07:32 +0700
commit6d09e0c9bea3944e9c7dfa4601d2454886afb257 (patch)
treecf49efae85fabe8750a0adab29bc07587b48aca1 /pkgs
parent4cae4418e9c3297a0ab8b707bd5ad408d5fc8056 (diff)
downloadnixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar.gz
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar.bz2
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar.lz
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar.xz
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.tar.zst
nixlib-6d09e0c9bea3944e9c7dfa4601d2454886afb257.zip
python.pkgs.apsw: move to separate expression
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/apsw/default.nix25
-rw-r--r--pkgs/top-level/python-packages.nix20
2 files changed, 26 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/apsw/default.nix b/pkgs/development/python-modules/apsw/default.nix
new file mode 100644
index 000000000000..3e7e970da6c0
--- /dev/null
+++ b/pkgs/development/python-modules/apsw/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildPythonPackage, fetchurl
+, sqlite, isPyPy }:
+
+buildPythonPackage rec {
+  pname = "apsw";
+  version = "3.7.6.2-r1";
+  name = "${pname}-${version}";
+
+  disabled = isPyPy;
+
+  src = fetchurl {
+    url = "http://apsw.googlecode.com/files/${name}.zip";
+    sha256 = "cb121b2bce052609570a2f6def914c0aa526ede07b7096dddb78624d77f013eb";
+  };
+
+  buildInputs = [ sqlite ];
+
+  # python: double free or corruption (fasttop): 0x0000000002fd4660 ***
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "A Python wrapper for the SQLite embedded relational database engine";
+    homepage = http://code.google.com/p/apsw/;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 127f5b16f0c9..34861b0289b2 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -588,25 +588,7 @@ in {
     };
   };
 
-  apsw = buildPythonPackage rec {
-    name = "apsw-3.7.6.2-r1";
-    disabled = isPyPy;
-
-    src = pkgs.fetchurl {
-      url = "http://apsw.googlecode.com/files/${name}.zip";
-      sha256 = "cb121b2bce052609570a2f6def914c0aa526ede07b7096dddb78624d77f013eb";
-    };
-
-    buildInputs = with self; [ pkgs.sqlite ];
-
-    # python: double free or corruption (fasttop): 0x0000000002fd4660 ***
-    doCheck = false;
-
-    meta = {
-      description = "A Python wrapper for the SQLite embedded relational database engine";
-      homepage = http://code.google.com/p/apsw/;
-    };
-  };
+  apsw = callPackage ../development/python-modules/apsw {};
 
   astor = buildPythonPackage rec {
     name = "astor-${version}";