Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 50 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, python-dateutil 6, typing-extensions 7, pytestCheckHook 8, pytest-mock 9, pytz 10, simplejson 11}: 12 13buildPythonPackage rec { 14 pname = "arrow"; 15 version = "1.0.3"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "399c9c8ae732270e1aa58ead835a79a40d7be8aa109c579898eb41029b5a231d"; 22 }; 23 24 postPatch = '' 25 # no coverage reports 26 sed -i "/addopts/d" tox.ini 27 ''; 28 29 propagatedBuildInputs = [ python-dateutil ] 30 ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 pytest-mock 35 pytz 36 simplejson 37 ]; 38 39 # ParserError: Could not parse timezone expression "America/Nuuk" 40 disabledTests = [ 41 "test_parse_tz_name_zzz" 42 ]; 43 44 meta = with lib; { 45 description = "Python library for date manipulation"; 46 homepage = "https://github.com/crsmithdev/arrow"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ thoughtpolice ]; 49 }; 50}