summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRahul Gopinath <rahul@gopinath.org>2017-05-02 21:08:10 -0700
committerRahul Gopinath <rahul@gopinath.org>2017-05-03 11:58:29 -0700
commit4036bc91da25b31f846431ee6dce77b6f48d4c06 (patch)
tree915b39c6e1f3f1133f0c4817c1edc4848a293f47 /pkgs/development/python-modules
parentd76e68423ff67200aba23ae38ceda61a23c983bf (diff)
downloadnixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar.gz
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar.bz2
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar.lz
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar.xz
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.tar.zst
nixpkgs-4036bc91da25b31f846431ee6dce77b6f48d4c06.zip
agate: refactor
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/agate/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/agate/default.nix b/pkgs/development/python-modules/agate/default.nix
new file mode 100644
index 00000000000..3ff097a78cf
--- /dev/null
+++ b/pkgs/development/python-modules/agate/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchPypi, buildPythonPackage, isPy3k,
+  discid, six, parsedatetime, isodate, Babel, pytimeparse,
+  leather, python-slugify }:
+
+buildPythonPackage rec {
+    name = "${pname}-${version}";
+    pname = "agate";
+    version = "1.6.0";
+
+    src = fetchPypi {
+      inherit pname version;
+      sha256 = "02pb5jjvzjqfpsa7q12afbk9nqj06xdpw1s7qa6a1bnalikfniqm";
+    };
+
+    propagatedBuildInputs = [ discid six parsedatetime
+         isodate Babel pytimeparse leather python-slugify ];
+
+    doCheck = !isPy3k;
+    # (only) on python3 unittest loader (loadTestsFromModule) fails
+
+    meta = with stdenv.lib; {
+      description = "A Python data analysis library that is optimized for humans instead of machines";
+      homepage    = https://github.com/wireservice/agate;
+      license     = with licenses; [ mit ];
+      maintainers = with maintainers; [ vrthra ];
+    };
+}