1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, future 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "parsedatetime"; 11 version = "2.6"; 12 disabled = isPy27; # no longer compatible with icu package 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455"; 17 }; 18 19 propagatedBuildInputs = [ future ]; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 pytestFlagsArray = [ "tests/Test*.py" ]; 24 25 disabledTests = [ 26 # https://github.com/bear/parsedatetime/issues/263 27 "testDate3ConfusedHourAndYear" 28 # https://github.com/bear/parsedatetime/issues/215 29 "testFloat" 30 ]; 31 32 pythonImportsCheck = [ "parsedatetime" ]; 33 34 meta = with lib; { 35 description = "Parse human-readable date/time text"; 36 homepage = "https://github.com/bear/parsedatetime"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ ]; 39 }; 40}