Skip to content

Commit

Permalink
python311Packages.ics: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jan 14, 2024
1 parent f75c716 commit 06cbb08
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions pkgs/development/python-modules/ics/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{ lib
, arrow
, attrs
, buildPythonPackage
, fetchFromGitHub
, pytest-flakes
, pytestCheckHook
, pythonOlder
, setuptools
, tatsu
, arrow
, pytestCheckHook
, pytest-flakes
}:

buildPythonPackage rec {
pname = "ics";
version = "0.7.2";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.6";

src = fetchFromGitHub {
Expand All @@ -21,7 +24,12 @@ buildPythonPackage rec {
hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
attrs
arrow
tatsu
];
Expand All @@ -45,15 +53,17 @@ buildPythonPackage rec {
"test_many_lines"
];

pythonImportsCheck = [ "ics" ];
pythonImportsCheck = [
"ics"
];

meta = with lib; {
description = "Pythonic and easy iCalendar library (RFC 5545)";
longDescription = ''
Ics.py is a pythonic and easy iCalendar library. Its goals are to read and
write ics data in a developer friendly way.
'';
homepage = "http://icspy.readthedocs.org/en/stable/";
homepage = "http://icspy.readthedocs.org/";
changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
Expand Down

0 comments on commit 06cbb08

Please sign in to comment.