Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, buildPythonPackage, fetchFromGitHub, replaceVars, hatch-vcs, hatchling, python-dateutil, tzdata, hypothesis, pytestCheckHook,}:
buildPythonPackage rec { version = "6.3.1"; pname = "icalendar"; pyproject = true;
src = fetchFromGitHub { owner = "collective"; repo = "icalendar"; tag = "v${version}"; hash = "sha256-lLcMuwKFdZbjscrp4dW5ybPHwcx9RHf44RH3BWwO6ng="; };
patches = [ (replaceVars ./no-dynamic-version.patch { inherit version; }) ];
build-system = [ hatch-vcs hatchling ];
dependencies = [ python-dateutil tzdata ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
disabledTests = [ # AssertionError: assert {'Atlantic/Jan_Mayen'} == {'Arctic/Longyearbyen'} "test_dateutil_timezone_is_matched_with_tzname" "test_docstring_of_python_file" ];
enabledTestPaths = [ "src/icalendar" ];
meta = with lib; { changelog = "https://github.com/collective/icalendar/blob/${src.tag}/CHANGES.rst"; description = "Parser/generator of iCalendar files"; mainProgram = "icalendar"; homepage = "https://github.com/collective/icalendar"; license = licenses.bsd2; maintainers = with maintainers; [ olcai ]; };}