Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 57 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 replaceVars, 6 hatch-vcs, 7 hatchling, 8 python-dateutil, 9 tzdata, 10 hypothesis, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 version = "6.1.0"; 16 pname = "icalendar"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "collective"; 21 repo = "icalendar"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-P+cUwNFSBjyTzqdBnIricoM3rUWUXQc8k1912jil79Q="; 24 }; 25 26 patches = [ 27 (replaceVars ./no-dynamic-version.patch { 28 inherit version; 29 }) 30 ]; 31 32 build-system = [ 33 hatch-vcs 34 hatchling 35 ]; 36 37 dependencies = [ 38 python-dateutil 39 tzdata 40 ]; 41 42 nativeCheckInputs = [ 43 hypothesis 44 pytestCheckHook 45 ]; 46 47 pytestFlagsArray = [ "src/icalendar" ]; 48 49 meta = with lib; { 50 changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst"; 51 description = "Parser/generator of iCalendar files"; 52 mainProgram = "icalendar"; 53 homepage = "https://github.com/collective/icalendar"; 54 license = licenses.bsd2; 55 maintainers = with maintainers; [ olcai ]; 56 }; 57}