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 { };