summary refs log tree commit diff
path: root/pkgs/development/python-modules/arrow
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-07-21 14:10:05 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-07-21 14:10:05 +0100
commitce67c7c1aca192540ecccafe9c2d83cacec16817 (patch)
tree60b5441ddb5a7f749dcd35044da26aa7e98d41c0 /pkgs/development/python-modules/arrow
parent98fe450553c34e44232971fbaad8709b853e89c8 (diff)
downloadnixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar.gz
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar.bz2
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar.lz
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar.xz
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.tar.zst
nixpkgs-ce67c7c1aca192540ecccafe9c2d83cacec16817.zip
pythonPackages.arrow: move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/arrow')
-rw-r--r--pkgs/development/python-modules/arrow/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/arrow/default.nix b/pkgs/development/python-modules/arrow/default.nix
new file mode 100644
index 00000000000..a85987a95b1
--- /dev/null
+++ b/pkgs/development/python-modules/arrow/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, nose, chai, simplejson
+, dateutil }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "arrow";
+  version = "0.10.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
+  };
+
+  checkPhase = ''
+    nosetests --cover-package=arrow
+  '';
+
+  buildInputs = [ nose chai simplejson ];
+  propagatedBuildInputs = [ dateutil ];
+
+  meta = with stdenv.lib; {
+    description = "Python library for date manipulation";
+    license     = "apache";
+    maintainers = with maintainers; [ thoughtpolice ];
+  };
+}