From 2399ceb9c828dab7eeb501e30d02952fa73ba84b Mon Sep 17 00:00:00 2001 From: Viktor Pocedulic Date: Sun, 23 Jun 2024 17:37:21 +0200 Subject: [PATCH 1/2] maintainers: add kvik --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 493e2848ddf0..b787c0ed0602 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11296,6 +11296,12 @@ githubId = 11614750; name = "Alexander Sharov"; }; + kvik = { + email = "viktor@a-b.xyz"; + github = "okvik"; + githubId = 58425080; + name = "Viktor Pocedulić"; + }; kwaa = { name = "藍+85CD"; email = "kwa@kwaa.dev"; From fc2d3db3d52ca2e601eaa8a9115e015919a2c540 Mon Sep 17 00:00:00 2001 From: Viktor Pocedulic Date: Sun, 23 Jun 2024 13:09:31 +0200 Subject: [PATCH 2/2] python3Packages.cyclonedds-python: init at 0.10.5 --- .../cyclonedds-python/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/cyclonedds-python/default.nix diff --git a/pkgs/development/python-modules/cyclonedds-python/default.nix b/pkgs/development/python-modules/cyclonedds-python/default.nix new file mode 100644 index 000000000000..e23214d57dfe --- /dev/null +++ b/pkgs/development/python-modules/cyclonedds-python/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + cyclonedds, + setuptools, + rich-click, + + pytestCheckHook, + pytest-mock, + pytest-cov-stub, +}: + +buildPythonPackage rec { + pname = "cyclonedds-python"; + version = "0.10.5"; + pyproject = true; + + src = fetchFromGitHub { + owner = "eclipse-cyclonedds"; + repo = "cyclonedds-python"; + rev = "refs/tags/${version}"; + hash = "sha256-MN3Z5gqsD+cr5Awmsia9+uCHL/a2KQP2uMS13rVc1Hw="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "pytest-cov" "" + ''; + + build-system = [ setuptools ]; + + buildInputs = [ cyclonedds ]; + + dependencies = [ rich-click ]; + + env.CYCLONEDDS_HOME = "${cyclonedds.out}"; + + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + pytest-cov-stub + ]; + + meta = { + description = "Python binding for Eclipse Cyclone DDS"; + homepage = "https://github.com/eclipse-cyclonedds/cyclonedds-python"; + changelog = "https://github.com/eclipse-cyclonedds/cyclonedds-python/releases/tag/${version}"; + license = lib.licenses.epl20; + maintainers = with lib.maintainers; [ kvik ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4c04ff4a3740..a36ab65d7b2e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2755,6 +2755,8 @@ self: super: with self; { cycler = callPackage ../development/python-modules/cycler { }; + cyclonedds-python = callPackage ../development/python-modules/cyclonedds-python { }; + cyclonedx-python-lib = callPackage ../development/python-modules/cyclonedx-python-lib { }; cyclopts = callPackage ../development/python-modules/cyclopts { };