summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-08-31 21:01:56 +0700
committerwisut hantanong <wizzup@gmail.com>2017-08-31 21:18:40 +0700
commit282216c635a4da125cac615b17f4812a6e4a2533 (patch)
tree8e738410ee9881e7b83070bf9d2aefc20180f9d1 /pkgs/development/python-modules
parentd94d826433e53dbf892217313e6084cf9ea3405f (diff)
downloadnixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar.gz
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar.bz2
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar.lz
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar.xz
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.tar.zst
nixlib-282216c635a4da125cac615b17f4812a6e4a2533.zip
pythonPackages.pygeoip : move to separate expression
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pygeoip/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pygeoip/default.nix b/pkgs/development/python-modules/pygeoip/default.nix
new file mode 100644
index 000000000000..a0a92ffc287e
--- /dev/null
+++ b/pkgs/development/python-modules/pygeoip/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, nose }:
+
+buildPythonPackage rec {
+  pname = "pygeoip";
+  version = "0.3.2";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "f22c4e00ddf1213e0fae36dc60b46ee7c25a6339941ec1a975539014c1f9a96d";
+  };
+
+  # requires geoip samples
+  doCheck = false;
+
+  buildInputs = [ nose ];
+
+  meta = with stdenv.lib; {
+    description = "Pure Python GeoIP API";
+    homepage = https://github.com/appliedsec/pygeoip;
+    license = licenses.lgpl3Plus;
+  };
+}