depot/third_party/nixpkgs/pkgs/development/python-modules/python-opendata-transport/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

46 lines
977 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, urllib3
}:
buildPythonPackage rec {
pname = "python-opendata-transport";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "python_opendata_transport";
inherit version;
hash = "sha256-2lEKPu5vjyqNUqz1NGmZ5b6YP3oWnCgoubDdiQCbdps=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
urllib3
];
# No tests are present
doCheck = false;
pythonImportsCheck = [
"opendata_transport"
];
meta = with lib; {
description = "Python client for interacting with transport.opendata.ch";
homepage = "https://github.com/home-assistant-ecosystem/python-opendata-transport";
changelog = "https://github.com/home-assistant-ecosystem/python-opendata-transport/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}