diff options
author | makefu <github@syntax-fehler.de> | 2017-12-12 11:33:33 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-12-12 14:14:24 +0100 |
commit | ba19c2d18e250ed3b94f411841a6affbf08bf89b (patch) | |
tree | d5ea317249739fd6fa1fb4a6d116671ba39cb37d /pkgs/development/python-modules/dateparser | |
parent | 3c032f0011d64131a66a3b60200edd5ad1cc78da (diff) | |
download | nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar.gz nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar.bz2 nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar.lz nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar.xz nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.tar.zst nixlib-ba19c2d18e250ed3b94f411841a6affbf08bf89b.zip |
pythonPackages.dateparser: 0.3.2-pre-2016-01-21 -> 0.6.0
Diffstat (limited to 'pkgs/development/python-modules/dateparser')
-rw-r--r-- | pkgs/development/python-modules/dateparser/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix new file mode 100644 index 000000000000..b73a1e9ec7fc --- /dev/null +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, buildPythonPackage, isPy3k +, nose +, nose-parameterized +, mock +, glibcLocales +, six +, jdatetime +, pyyaml +, dateutil +, umalqurra +, pytz +, tzlocal +, regex +, ruamel_yaml }: +buildPythonPackage rec { + pname = "dateparser"; + version = "0.6.0"; + + src = fetchFromGitHub { + owner = "scrapinghub"; + repo = pname; + rev = "refs/tags/v${version}"; + sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y"; + }; + + # Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364 + disabled = isPy3k; + + checkInputs = [ nose nose-parameterized mock glibcLocales ]; + preCheck ='' + # skip because of missing convertdate module, which is an extra requirement + rm tests/test_jalali.py + ''; + + propagatedBuildInputs = [ six jdatetime pyyaml dateutil + umalqurra pytz tzlocal regex ruamel_yaml ]; + + meta = with stdenv.lib;{ + description = "Date parsing library designed to parse dates from HTML pages"; + homepage = https://github.com/scrapinghub/dateparser; + license = licenses.bsd3; + }; +} |