tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.dateparser: 0.6.0 -> 0.7.0
Robert Schütz
8 years ago
d436d3da
465d7c55
+14
-21
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
dateparser
default.nix
+14
-21
pkgs/development/python-modules/dateparser/default.nix
reviewed
···
1
1
-
{ stdenv, fetchFromGitHub, buildPythonPackage, isPy3k
1
1
+
{ lib, fetchPypi, buildPythonPackage, isPy3k
2
2
, nose
3
3
, parameterized
4
4
, mock
5
5
, glibcLocales
6
6
, six
7
7
, jdatetime
8
8
-
, pyyaml
9
8
, dateutil
10
9
, umalqurra
11
10
, pytz
12
11
, tzlocal
13
12
, regex
14
13
, ruamel_yaml }:
14
14
+
15
15
buildPythonPackage rec {
16
16
pname = "dateparser";
17
17
-
version = "0.6.0";
17
17
+
version = "0.7.0";
18
18
19
19
-
src = fetchFromGitHub {
20
20
-
owner = "scrapinghub";
21
21
-
repo = pname;
22
22
-
rev = "refs/tags/v${version}";
23
23
-
sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y";
19
19
+
src = fetchPypi {
20
20
+
inherit pname version;
21
21
+
sha256 = "940828183c937bcec530753211b70f673c0a9aab831e43273489b310538dff86";
24
22
};
25
23
26
26
-
# Replace nose-parameterized by parameterized
27
27
-
prePatch = ''
28
28
-
sed -i s/nose_parameterized/parameterized/g tests/*.py
29
29
-
sed -i s/nose-parameterized/parameterized/g tests/requirements.txt
30
30
-
'';
31
31
-
32
32
-
# Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364
33
33
-
disabled = isPy3k;
34
34
-
35
35
-
checkInputs = [ nose parameterized mock glibcLocales ];
24
24
+
checkInputs = [ nose mock parameterized six glibcLocales ];
36
25
preCheck =''
37
26
# skip because of missing convertdate module, which is an extra requirement
38
27
rm tests/test_jalali.py
39
28
'';
40
29
41
41
-
propagatedBuildInputs = [ six jdatetime pyyaml dateutil
42
42
-
umalqurra pytz tzlocal regex ruamel_yaml ];
30
30
+
propagatedBuildInputs = [
31
31
+
# install_requires
32
32
+
dateutil pytz regex tzlocal
33
33
+
# extra_requires
34
34
+
jdatetime ruamel_yaml umalqurra
35
35
+
];
43
36
44
44
-
meta = with stdenv.lib;{
37
37
+
meta = with lib; {
45
38
description = "Date parsing library designed to parse dates from HTML pages";
46
39
homepage = https://github.com/scrapinghub/dateparser;
47
40
license = licenses.bsd3;