2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-26 00:50:22 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-29 19:06:24 +00:00
|
|
|
, isPy27
|
2018-10-26 00:50:22 +00:00
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
|
|
|
, future
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parsedatetime";
|
2020-06-06 06:47:21 +00:00
|
|
|
version = "2.6";
|
2020-08-29 19:06:24 +00:00
|
|
|
disabled = isPy27; # no longer compatible with icu package
|
2018-10-26 00:50:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 06:47:21 +00:00
|
|
|
sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455";
|
2018-10-26 00:50:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 00:50:22 +00:00
|
|
|
description = "Parse human-readable date/time text";
|
|
|
|
homepage = "https://github.com/bear/parsedatetime";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|