nixpkgs/pkgs/development/python-modules/vobject/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
826 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPyPy,
setuptools,
python-dateutil,
pytz,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vobject";
version = "0.9.9";
pyproject = true;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "py-vobject";
repo = "vobject";
tag = "v${version}";
hash = "sha256-OL0agVpV/kWph6KhpzDhfzayscs0OaJ2W9WIilXVaS0=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
pytz
six
];
pythonImportsCheck = [ "vobject" ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests.py" ];
meta = {
description = "Module for reading vCard and vCalendar files";
homepage = "https://github.com/py-vobject/vobject";
license = lib.licenses.asl20;
maintainers = [ ];
};
}