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