python313Packages.pyrail: init at 0.4.0

This commit is contained in:
Robert Schütz
2025-02-02 19:00:45 -08:00
parent c6e957d81b
commit a14bf1a49e
2 changed files with 58 additions and 0 deletions
@@ -0,0 +1,56 @@
{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
mashumaro,
poetry-core,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyrail";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tjorim";
repo = "pyrail";
tag = "v${version}";
hash = "sha256-6CE8FrBCVcO88kGwqAMBx9dp5b27oeCm/w1PrEf6a0E=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
mashumaro
] ++ mashumaro.optional-dependencies.orjson;
pythonImportsCheck = [ "pyrail" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# tests connect to the internet
"test_get_composition"
"test_get_connections"
"test_get_disturbances"
"test_get_liveboard"
"test_get_stations"
"test_get_vehicle"
"test_liveboard_with_date_time"
];
meta = {
changelog = "https://github.com/tjorim/pyrail/releases/tag/${src.tag}";
description = "Async Python wrapper for the iRail API";
homepage = "https://github.com/tjorim/pyrail";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
+2
View File
@@ -10733,6 +10733,8 @@ self: super: with self; {
pypoolstation = callPackage ../development/python-modules/pypoolstation { };
pyrail = callPackage ../development/python-modules/pyrail { };
pyrdfa3 = callPackage ../development/python-modules/pyrdfa3 { };
pyre-extensions = callPackage ../development/python-modules/pyre-extensions { };