mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
43 lines
914 B
Nix
43 lines
914 B
Nix
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
|
, nose
|
|
, parameterized
|
|
, mock
|
|
, glibcLocales
|
|
, six
|
|
, jdatetime
|
|
, dateutil
|
|
, umalqurra
|
|
, pytz
|
|
, tzlocal
|
|
, regex
|
|
, ruamel_yaml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dateparser";
|
|
version = "0.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "940828183c937bcec530753211b70f673c0a9aab831e43273489b310538dff86";
|
|
};
|
|
|
|
checkInputs = [ nose mock parameterized six glibcLocales ];
|
|
preCheck =''
|
|
# skip because of missing convertdate module, which is an extra requirement
|
|
rm tests/test_jalali.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
# install_requires
|
|
dateutil pytz regex tzlocal
|
|
# extra_requires
|
|
jdatetime ruamel_yaml umalqurra
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Date parsing library designed to parse dates from HTML pages";
|
|
homepage = https://github.com/scrapinghub/dateparser;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|