Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 23 lines 570 B view raw
1{ lib, fetchPypi, buildPythonPackage, pythonOlder 2, dateutil, pytzdata, typing }: 3 4buildPythonPackage rec { 5 pname = "pendulum"; 6 version = "2.0.5"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "d3078e007315a959989c41cee5cfd63cfeeca21dd3d8295f4bc24199489e9b6c"; 11 }; 12 13 propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing; 14 15 # No tests 16 doCheck = false; 17 18 meta = with lib; { 19 description = "Python datetimes made easy"; 20 homepage = https://github.com/sdispater/pendulum; 21 license = licenses.mit; 22 }; 23}