Merge pull request #199476 from fabaff/ical

python310Packages.ical: init at 4.1.0
This commit is contained in:
Fabian Affolter 2022-11-04 09:54:36 +01:00 committed by GitHub
commit f0bcb4c756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, python-dateutil
, buildPythonPackage
, fetchFromGitHub
, freezegun
, tzdata
, pyparsing
, pydantic
, pytest-asyncio
, pytest-benchmark
, pytest-golden
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ical";
version = "4.1.0";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "allenporter";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-pZtjGWmEVcHSCgiVTKoEaRvec02cz3x93W+UXx3J8gE=";
};
propagatedBuildInputs = [
python-dateutil
tzdata
pydantic
pyparsing
];
checkInputs = [
freezegun
pytest-asyncio
pytest-benchmark
pytest-golden
pytestCheckHook
];
pythonImportsCheck = [
"ical"
];
meta = with lib; {
description = "Library for handling iCalendar";
homepage = "https://github.com/allenporter/ical";
changelog = "https://github.com/allenporter/ical/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -0,0 +1,65 @@
{ lib
, atomicwrites
, buildPythonPackage
, fetchFromGitHub
#, hatchling
, ruamel-yaml
, poetry
, pytest
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, testfixtures
}:
buildPythonPackage rec {
pname = "pytest-golden";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "oprypin";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-l5fXWDK6gWJc3dkYFTokI9tWvawMRnF0td/lSwqkYXE=";
};
pythonRelaxDeps = [
"testfixtures"
];
nativeBuildInputs = [
# hatchling used for > 0.2.2
poetry
pythonRelaxDepsHook
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
atomicwrites
ruamel-yaml
testfixtures
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"pytest_golden"
];
meta = with lib; {
description = "Plugin for pytest that offloads expected outputs to data files";
homepage = "https://github.com/oprypin/pytest-golden";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -4371,6 +4371,8 @@ self: super: with self; {
ibm-watson = callPackage ../development/python-modules/ibm-watson { };
ical = callPackage ../development/python-modules/ical { };
icalendar = callPackage ../development/python-modules/icalendar { };
icecream = callPackage ../development/python-modules/icecream { };
@ -8749,6 +8751,8 @@ self: super: with self; {
pytest-freezegun = callPackage ../development/python-modules/pytest-freezegun { };
pytest-golden = callPackage ../development/python-modules/pytest-golden { };
pytest-helpers-namespace = callPackage ../development/python-modules/pytest-helpers-namespace { };
pytest-html = callPackage ../development/python-modules/pytest-html { };