depot/third_party/nixpkgs/pkgs/development/python-modules/israel-rail-api/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

41 lines
870 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
pytz,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "israel-rail-api";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "sh0oki";
repo = "israel-rail-api";
rev = "refs/tags/v${version}";
hash = "sha256-OiWK3gi7dQ7SF4fvusKtSFzdhrsvePlscX0EYQ/hlYk=";
};
build-system = [ setuptools ];
dependencies = [
pytz
requests
];
pythonImportsCheck = [ "israelrailapi" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/sh0oki/israel-rail-api/releases/tag/v${version}";
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 ];
};
}