about summary refs log tree commit diff
path: root/pkgs/development/python-modules/altair
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-07-15 12:58:25 +0700
committerJörg Thalheim <joerg@thalheim.io>2017-07-15 17:40:54 +0100
commit2ce14a8ce9feeb257c87b40df39ab50cceb69560 (patch)
tree03444b5681012af47a9bd78a8b03cf37b60bfd9f /pkgs/development/python-modules/altair
parentf6b103b51edccf320f8f3e4f95cd499a334c2975 (diff)
downloadnixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar.gz
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar.bz2
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar.lz
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar.xz
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.tar.zst
nixlib-2ce14a8ce9feeb257c87b40df39ab50cceb69560.zip
python.pkgs.altair: move to separate expression
Diffstat (limited to 'pkgs/development/python-modules/altair')
-rw-r--r--pkgs/development/python-modules/altair/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/altair/default.nix b/pkgs/development/python-modules/altair/default.nix
new file mode 100644
index 000000000000..a0504de4fb81
--- /dev/null
+++ b/pkgs/development/python-modules/altair/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, pytest, vega, pandas, ipython, traitlets }:
+
+buildPythonPackage rec {
+  pname = "altair";
+  version = "1.2.0";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "05c47dm20p7m0017p2h38il721rxag1q0457dj7whp0k8rc7qd1n";
+  };
+
+  buildInputs = [ pytest ];
+
+  checkPhase = ''
+    export LANG=en_US.UTF-8
+    py.test altair --doctest-modules
+  '';
+
+  propagatedBuildInputs = [ vega pandas ipython traitlets ];
+
+  meta = with stdenv.lib; {
+    description = "A declarative statistical visualization library for Python.";
+    homepage = https://github.com/altair-viz/altair;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ teh ];
+    platforms = platforms.linux;
+  };
+}