lol

pythonPackages.dateparser: 0.6.0 -> 0.7.0

+14 -21
+14 -21
pkgs/development/python-modules/dateparser/default.nix
··· 1 - { stdenv, fetchFromGitHub, buildPythonPackage, isPy3k 1 + { lib, fetchPypi, buildPythonPackage, isPy3k 2 2 , nose 3 3 , parameterized 4 4 , mock 5 5 , glibcLocales 6 6 , six 7 7 , jdatetime 8 - , pyyaml 9 8 , dateutil 10 9 , umalqurra 11 10 , pytz 12 11 , tzlocal 13 12 , regex 14 13 , ruamel_yaml }: 14 + 15 15 buildPythonPackage rec { 16 16 pname = "dateparser"; 17 - version = "0.6.0"; 17 + version = "0.7.0"; 18 18 19 - src = fetchFromGitHub { 20 - owner = "scrapinghub"; 21 - repo = pname; 22 - rev = "refs/tags/v${version}"; 23 - sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y"; 19 + src = fetchPypi { 20 + inherit pname version; 21 + sha256 = "940828183c937bcec530753211b70f673c0a9aab831e43273489b310538dff86"; 24 22 }; 25 23 26 - # Replace nose-parameterized by parameterized 27 - prePatch = '' 28 - sed -i s/nose_parameterized/parameterized/g tests/*.py 29 - sed -i s/nose-parameterized/parameterized/g tests/requirements.txt 30 - ''; 31 - 32 - # Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364 33 - disabled = isPy3k; 34 - 35 - checkInputs = [ nose parameterized mock glibcLocales ]; 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 - propagatedBuildInputs = [ six jdatetime pyyaml dateutil 42 - umalqurra pytz tzlocal regex ruamel_yaml ]; 30 + propagatedBuildInputs = [ 31 + # install_requires 32 + dateutil pytz regex tzlocal 33 + # extra_requires 34 + jdatetime ruamel_yaml umalqurra 35 + ]; 43 36 44 - meta = with stdenv.lib;{ 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;