at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 flit-core, 7 python-dateutil, 8 types-python-dateutil, 9 pytestCheckHook, 10 pytest-mock, 11 pytz, 12 simplejson, 13}: 14 15buildPythonPackage rec { 16 pname = "arrow"; 17 version = "1.3.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-1FQGF2SMtfiVcw8a2MgqZfLa0BZvV7dfPKVHWcTWeoU="; 25 }; 26 27 postPatch = '' 28 # no coverage reports 29 sed -i "/addopts/d" tox.ini 30 ''; 31 32 nativeBuildInputs = [ flit-core ]; 33 34 propagatedBuildInputs = [ 35 python-dateutil 36 types-python-dateutil 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 pytest-mock 42 pytz 43 simplejson 44 ]; 45 46 # ParserError: Could not parse timezone expression "America/Nuuk" 47 disabledTests = [ "test_parse_tz_name_zzz" ]; 48 49 pythonImportsCheck = [ "arrow" ]; 50 51 meta = with lib; { 52 description = "Python library for date manipulation"; 53 homepage = "https://github.com/crsmithdev/arrow"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ thoughtpolice ]; 56 }; 57}