From 4328c8f8f5eec1eeda741a15dbdeb82928e911d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 31 Oct 2025 23:34:51 -0700 Subject: [PATCH] python3Packages.python-citybikes: init at 0.3.3 --- .../python-citybikes/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/python-citybikes/default.nix diff --git a/pkgs/development/python-modules/python-citybikes/default.nix b/pkgs/development/python-modules/python-citybikes/default.nix new file mode 100644 index 000000000000..dcba98e7295f --- /dev/null +++ b/pkgs/development/python-modules/python-citybikes/default.nix @@ -0,0 +1,50 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + requests, + responses, + setuptools, +}: + +buildPythonPackage rec { + pname = "python-citybikes"; + version = "0.3.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "eskerda"; + repo = "python-citybikes"; + tag = version; + hash = "sha256-it/QCUwNc6g88IrtMTS8wr/t4Apb2ovSheufOnu4fCM="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + aiohttp + requests + ]; + + pythonImportsCheck = [ "citybikes" ]; + + nativeCheckInputs = [ + pytest-aiohttp + pytest-asyncio + pytestCheckHook + responses + ]; + + meta = { + description = "Client interface for the Citybikes API"; + homepage = "https://github.com/eskerda/python-citybikes"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f8f0fc200956..89592daea8a9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14875,6 +14875,8 @@ self: super: with self; { python-cinderclient = callPackage ../development/python-modules/python-cinderclient { }; + python-citybikes = callPackage ../development/python-modules/python-citybikes { }; + python-clementine-remote = callPackage ../development/python-modules/python-clementine-remote { }; python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };