diff --git a/pkgs/development/python-modules/pybuildkite/default.nix b/pkgs/development/python-modules/pybuildkite/default.nix new file mode 100644 index 000000000000..83ec9db735d8 --- /dev/null +++ b/pkgs/development/python-modules/pybuildkite/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + requests, + + # tests + pytest-cov-stub, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "pybuildkite"; + version = "1.3.0"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "pyasi"; + repo = "pybuildkite"; + tag = "v${finalAttrs.version}"; + hash = "sha256-yMUZUkERfxMUkVVYNkPiFf9wrZR6d5+gqW/P6ri2Q1I="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + requests + ]; + + pythonImportsCheck = [ "pybuildkite" ]; + + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; + + meta = { + description = "Python library for the Buildkite API"; + homepage = "https://github.com/pyasi/pybuildkite"; + changelog = "https://github.com/pyasi/pybuildkite/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17f93ff77f23..712c6adb33b0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13607,6 +13607,8 @@ self: super: with self; { pybtex-docutils = callPackage ../development/python-modules/pybtex-docutils { }; + pybuildkite = callPackage ../development/python-modules/pybuildkite { }; + pybullet = callPackage ../development/python-modules/pybullet { }; pycairo = callPackage ../development/python-modules/pycairo { inherit (pkgs.buildPackages) meson; };