From 80756c01c661ac1a0421fadde673e39632708652 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 13 Jul 2022 17:23:53 +0200 Subject: [PATCH] python310Packages.dm-env: init at 1.5 --- .../python-modules/dm-env/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/dm-env/default.nix diff --git a/pkgs/development/python-modules/dm-env/default.nix b/pkgs/development/python-modules/dm-env/default.nix new file mode 100644 index 000000000000..92c234c215c3 --- /dev/null +++ b/pkgs/development/python-modules/dm-env/default.nix @@ -0,0 +1,38 @@ +{ lib +, fetchPypi +, buildPythonPackage +, dm-tree +, numpy +, absl-py +, nose }: + +buildPythonPackage rec { + pname = "dm-env"; + version = "1.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Pv2ZsGUlY1mVB8QV1ItRiWyIvi8BwrYlCvi6tRVx41M="; + }; + + buildInputs = [ + absl-py + dm-tree + numpy + ]; + + checkInputs = [ + nose + ]; + + pythonImportsCheck = [ + "dm_env" + ]; + + meta = with lib; { + description = "Pure Python client for Apache Kafka"; + homepage = "https://github.com/dpkp/kafka-python"; + license = licenses.asl20; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b7c4dc50ec8c..c2bb1169e66f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2523,6 +2523,8 @@ in { dmenu-python = callPackage ../development/python-modules/dmenu { }; + dm-env = callPackage ../development/python-modules/dm-env { }; + dm-haiku = callPackage ../development/python-modules/dm-haiku { }; dm-tree = callPackage ../development/python-modules/dm-tree {