nixpkgs/pkgs/development/python-modules/vobject/default.nix
2024-11-03 00:04:09 +09:00

46 lines
774 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
setuptools,
python-dateutil,
pytz,
six,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.9.8";
pname = "vobject";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-2wCn9NtJOXFV3YpoceiioBdabrpaZUww6RD4KylRS1g=";
};
disabled = isPyPy;
build-system = [ setuptools ];
dependencies = [
python-dateutil
pytz
six
];
pythonImportsCheck = [ "vobject" ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests.py" ];
meta = with lib; {
description = "Module for reading vCard and vCalendar files";
homepage = "https://github.com/py-vobject/vobject";
license = licenses.asl20;
maintainers = [ ];
};
}