Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 570 B view raw
1{ lib, fetchPypi, buildPythonPackage, pythonOlder 2, dateutil, pytzdata, typing }: 3 4buildPythonPackage rec { 5 pname = "pendulum"; 6 version = "2.0.4"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "cf535d36c063575d4752af36df928882b2e0e31541b4482c97d63752785f9fcb"; 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}