tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python2Packages.arrow: keep 0.17.0
Frederik Rietdijk
4 years ago
b8f2632d
a81f9994
+42
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
arrow
2.nix
top-level
python2-packages.nix
+40
pkgs/development/python-modules/arrow/2.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib, buildPythonPackage, fetchPypi, isPy27
2
+
, nose, chai, simplejson, backports_functools_lru_cache
3
+
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
4
+
, pytestCheckHook
5
+
}:
6
+
7
+
buildPythonPackage rec {
8
+
pname = "arrow";
9
+
version = "0.17.0";
10
+
11
+
src = fetchPypi {
12
+
inherit pname version;
13
+
sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4";
14
+
};
15
+
16
+
propagatedBuildInputs = [ python-dateutil ]
17
+
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
18
+
19
+
checkInputs = [
20
+
dateparser
21
+
pytestCheckHook
22
+
pytestcov
23
+
pytest-mock
24
+
pytz
25
+
simplejson
26
+
sphinx
27
+
];
28
+
29
+
# ParserError: Could not parse timezone expression "America/Nuuk"
30
+
disabledTests = [
31
+
"test_parse_tz_name_zzz"
32
+
];
33
+
34
+
meta = with lib; {
35
+
description = "Python library for date manipulation";
36
+
homepage = "https://github.com/crsmithdev/arrow";
37
+
license = licenses.asl20;
38
+
maintainers = with maintainers; [ thoughtpolice ];
39
+
};
40
+
}
+2
pkgs/top-level/python2-packages.nix
···
8
9
appleseed = toPythonModule (pkgs.appleseed.override { inherit (self) python; });
10
0
0
11
astroid = callPackage ../development/python-modules/astroid/1.6.nix { };
12
13
browsermob-proxy = callPackage ../development/python-modules/browsermob-proxy { };
···
8
9
appleseed = toPythonModule (pkgs.appleseed.override { inherit (self) python; });
10
11
+
arrow = callPackage ../development/python-modules/arrow/2.nix { };
12
+
13
astroid = callPackage ../development/python-modules/astroid/1.6.nix { };
14
15
browsermob-proxy = callPackage ../development/python-modules/browsermob-proxy { };