aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/arrow
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-04 20:34:50 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-04 20:34:50 +0200
commit8e9d8d8b70f2a5515ffa4b2dad18cf5783ab1e4e (patch)
treec2f70049be19f757f1ae6b2b80c3bfe70a47612c /nixpkgs/pkgs/development/python-modules/arrow
parent240cb27216dbb4203e2d470d78888b5cf82809ac (diff)
parent467ce5a9f45aaf96110b41eb863a56866e1c2c3c (diff)
Merge commit '467ce5a9f45aaf96110b41eb863a56866e1c2c3c'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/arrow')
-rw-r--r--nixpkgs/pkgs/development/python-modules/arrow/default.nix31
1 files changed, 19 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/arrow/default.nix b/nixpkgs/pkgs/development/python-modules/arrow/default.nix
index 141ce20fdcb..4fdf55bc2bd 100644
--- a/nixpkgs/pkgs/development/python-modules/arrow/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/arrow/default.nix
@@ -1,30 +1,37 @@
-{ stdenv, buildPythonPackage, fetchPypi
+{ stdenv, lib, buildPythonPackage, fetchPypi, isPy27
, nose, chai, simplejson, backports_functools_lru_cache
-, dateutil, pytz, mock, dateparser
+, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov, pytest
}:
buildPythonPackage rec {
pname = "arrow";
- version = "0.15.5";
+ version = "0.15.6";
src = fetchPypi {
inherit pname version;
- sha256 = "0yq2bld2bjxddmg9zg4ll80pb32rkki7xyhgnrqnkxy5w9jf942k";
+ sha256 = "eb5d339f00072cc297d7de252a2e75f272085d1231a3723f1026d1fa91367118";
};
- checkPhase = ''
- nosetests --cover-package=arrow
- '';
+ propagatedBuildInputs = [ python-dateutil ]
+ ++ lib.optionals isPy27 [ backports_functools_lru_cache ];
- checkInputs = [ nose chai simplejson pytz ];
- propagatedBuildInputs = [ dateutil backports_functools_lru_cache mock dateparser];
+ checkInputs = [
+ dateparser
+ pytest
+ pytestcov
+ pytest-mock
+ pytz
+ simplejson
+ sphinx
+ ];
- postPatch = ''
- substituteInPlace setup.py --replace "==1.2.1" ""
+ checkPhase = ''
+ pytest
'';
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "Python library for date manipulation";
+ homepage = "https://github.com/crsmithdev/arrow";
license = licenses.asl20;
maintainers = with maintainers; [ thoughtpolice ];
};