2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, future
|
2021-08-18 13:19:15 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parsedatetime";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27; # no longer compatible with icu package
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/Test*.py" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/bear/parsedatetime/issues/263
|
|
|
|
"testDate3ConfusedHourAndYear"
|
|
|
|
# https://github.com/bear/parsedatetime/issues/215
|
|
|
|
"testFloat"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportChecks = [ "parsedatetime" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Parse human-readable date/time text";
|
|
|
|
homepage = "https://github.com/bear/parsedatetime";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|