Files
nixpkgs/pkgs/development/python-modules/israel-rail-api/default.nix
T
2025-10-24 05:31:13 +00:00

42 lines
859 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
pytz,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "israel-rail-api";
version = "0.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "sh0oki";
repo = "israel-rail-api";
tag = "v${version}";
hash = "sha256-vYMqMrvLQsy0MSfYAdlXqV1rF76A/cqkttWh47J8xn8=";
};
build-system = [ setuptools ];
dependencies = [
pytz
requests
];
pythonImportsCheck = [ "israelrailapi" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/sh0oki/israel-rail-api/releases/tag/${src.tag}";
description = "Python wrapping of the Israeli Rail API";
homepage = "https://github.com/sh0oki/israel-rail-api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}