Files
nixpkgs/pkgs/development/python-modules/nsapi/default.nix
T
Robert Schütz fcffc93410 Revert "python3Packages.nsapi: 3.1.3 -> 3.2.1"
This reverts commit 2a66c41b11 because it
broke home-assistant.tests.components.nederlandse_spoorwegen.
2026-03-05 08:11:00 -08:00

38 lines
776 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "nsapi";
version = "3.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "aquatix";
repo = "ns-api";
tag = "v${version}";
hash = "sha256-Buhc0643WeX/4ZU/RkzNWiFjfEAJUtNL6uJ98unTnCg=";
};
build-system = [ setuptools ];
dependencies = [ pytz ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "ns_api" ];
meta = {
description = "Python module to query routes of the Dutch railways";
homepage = "https://github.com/aquatix/ns-api/";
changelog = "https://github.com/aquatix/ns-api/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}