Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytz 6, zope_interface 7}: 8 9buildPythonPackage rec { 10 pname = "datetime"; 11 version = "5.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "zopefoundation"; 18 repo = "datetime"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-5H7s2y/2zsQC3Azs1yakotO8ZVLCRV8yPahbX09C5L8="; 21 }; 22 23 propagatedBuildInputs = [ 24 pytz 25 zope_interface 26 ]; 27 28 pythonImportsCheck = [ 29 "DateTime" 30 ]; 31 32 meta = with lib; { 33 description = "DateTime data type, as known from Zope"; 34 homepage = "https://github.com/zopefoundation/DateTime"; 35 changelog = "https://github.com/zopefoundation/DateTime/releases/tag/${version}"; 36 license = licenses.zpl21; 37 maintainers = with maintainers; [ icyrockcom ]; 38 }; 39} 40