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
···
1
1
+
{ lib, buildPythonPackage, fetchPypi, isPy27
2
2
+
, nose, chai, simplejson, backports_functools_lru_cache
3
3
+
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
4
4
+
, pytestCheckHook
5
5
+
}:
6
6
+
7
7
+
buildPythonPackage rec {
8
8
+
pname = "arrow";
9
9
+
version = "0.17.0";
10
10
+
11
11
+
src = fetchPypi {
12
12
+
inherit pname version;
13
13
+
sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4";
14
14
+
};
15
15
+
16
16
+
propagatedBuildInputs = [ python-dateutil ]
17
17
+
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
18
18
+
19
19
+
checkInputs = [
20
20
+
dateparser
21
21
+
pytestCheckHook
22
22
+
pytestcov
23
23
+
pytest-mock
24
24
+
pytz
25
25
+
simplejson
26
26
+
sphinx
27
27
+
];
28
28
+
29
29
+
# ParserError: Could not parse timezone expression "America/Nuuk"
30
30
+
disabledTests = [
31
31
+
"test_parse_tz_name_zzz"
32
32
+
];
33
33
+
34
34
+
meta = with lib; {
35
35
+
description = "Python library for date manipulation";
36
36
+
homepage = "https://github.com/crsmithdev/arrow";
37
37
+
license = licenses.asl20;
38
38
+
maintainers = with maintainers; [ thoughtpolice ];
39
39
+
};
40
40
+
}
+2
pkgs/top-level/python2-packages.nix
···
8
8
9
9
appleseed = toPythonModule (pkgs.appleseed.override { inherit (self) python; });
10
10
11
11
+
arrow = callPackage ../development/python-modules/arrow/2.nix { };
12
12
+
11
13
astroid = callPackage ../development/python-modules/astroid/1.6.nix { };
12
14
13
15
browsermob-proxy = callPackage ../development/python-modules/browsermob-proxy { };