summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-11-01 18:01:10 +0000
committerGitHub <noreply@github.com>2022-11-01 18:01:10 +0000
commitef41cdba6c2d52a449bbccfebefa87a2da05ed3f (patch)
treea5070b48fbdb2b4d08031937c2abe419f7576f27 /pkgs/development/python-modules
parenteeca5969b3f42ac943639aaec503816f053e5e53 (diff)
parent04f7dcbc66fe880689287a20e64d9598a9800d57 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/casbin/default.nix4
-rw-r--r--pkgs/development/python-modules/demetriek/default.nix65
-rw-r--r--pkgs/development/python-modules/gym-notices/default.nix24
-rw-r--r--pkgs/development/python-modules/gym/default.nix12
-rw-r--r--pkgs/development/python-modules/meshtastic/default.nix4
-rw-r--r--pkgs/development/python-modules/readme_renderer/default.nix4
-rw-r--r--pkgs/development/python-modules/types-pytz/default.nix4
7 files changed, 105 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/casbin/default.nix b/pkgs/development/python-modules/casbin/default.nix
index 3072917f2ff1..5f208793ab55 100644
--- a/pkgs/development/python-modules/casbin/default.nix
+++ b/pkgs/development/python-modules/casbin/default.nix
@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "casbin";
- version = "1.17.2";
+ version = "1.17.3";
format = "setuptools";
disabled = pythonOlder "3.6";
@@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = pname;
repo = "pycasbin";
rev = "refs/tags/v${version}";
- hash = "sha256-wJYGo87K9Ae2HoN/ZR3S0EiX2v68vs+Vb75nA+Csass=";
+ hash = "sha256-b/bA1ClBdj25aPoniszqRtNih+qzJuLMiGkNoV1cv7c=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/demetriek/default.nix b/pkgs/development/python-modules/demetriek/default.nix
new file mode 100644
index 000000000000..99b889eae274
--- /dev/null
+++ b/pkgs/development/python-modules/demetriek/default.nix
@@ -0,0 +1,65 @@
+{ lib
+, aiohttp
+, awesomeversion
+, backoff
+, buildPythonPackage
+, pydantic
+, fetchFromGitHub
+, poetry-core
+, yarl
+, aresponses
+, pytest-asyncio
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+ pname = "demetriek";
+ version = "0.4.0";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.9";
+
+ src = fetchFromGitHub {
+ owner = "frenck";
+ repo = "python-demetriek";
+ rev = "refs/tags/v${version}";
+ sha256 = "sha256-LCHHBcZgO9gw5jyaJiiS4lKyb0ut+PJvKTylIvIKHhc=";
+ };
+
+ postPatch = ''
+ # Upstream doesn't set a version for the pyproject.toml
+ substituteInPlace pyproject.toml \
+ --replace "0.0.0" "${version}" \
+ --replace "--cov" ""
+ '';
+
+ nativeBuildInputs = [
+ poetry-core
+ ];
+
+ propagatedBuildInputs = [
+ aiohttp
+ awesomeversion
+ backoff
+ pydantic
+ yarl
+ ];
+
+ checkInputs = [
+ aresponses
+ pytest-asyncio
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "demetriek"
+ ];
+
+ meta = with lib; {
+ description = "Python client for LaMetric TIME devices";
+ homepage = "https://github.com/frenck/python-demetriek";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fab ];
+ };
+}
diff --git a/pkgs/development/python-modules/gym-notices/default.nix b/pkgs/development/python-modules/gym-notices/default.nix
new file mode 100644
index 000000000000..1cd974976e4a
--- /dev/null
+++ b/pkgs/development/python-modules/gym-notices/default.nix
@@ -0,0 +1,24 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+ pname = "gym-notices";
+ version = "0.0.8";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "sha256-rSXiAEh8r6NpcoYl/gZOiK2hNGYYUmECZZtGQPK0uRE=";
+ };
+
+ pythonImportsCheck = [ "gym_notices" ];
+
+ meta = with lib; {
+ description = "Notices for Python package Gym";
+ homepage = "https://github.com/Farama-Foundation/gym-notices";
+ license = licenses.mit;
+ maintainers = with maintainers; [ billhuang ];
+ };
+}
+
diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix
index 1616343f8b43..44fbdc040123 100644
--- a/pkgs/development/python-modules/gym/default.nix
+++ b/pkgs/development/python-modules/gym/default.nix
@@ -3,23 +3,27 @@
, fetchFromGitHub
, numpy
, cloudpickle
+, gym-notices
+, importlib-metadata
+, pythonOlder
}:
buildPythonPackage rec {
pname = "gym";
- version = "0.21.0";
+ version = "0.26.2";
src = fetchFromGitHub {
owner = "openai";
repo = pname;
- rev = "v${version}";
- sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c";
+ rev = "${version}";
+ sha256 = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
};
propagatedBuildInputs = [
cloudpickle
numpy
- ];
+ gym-notices
+ ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
# The test needs MuJoCo that is not free library.
doCheck = false;
diff --git a/pkgs/development/python-modules/meshtastic/default.nix b/pkgs/development/python-modules/meshtastic/default.nix
index e8a3864fa80e..fb11b9be64af 100644
--- a/pkgs/development/python-modules/meshtastic/default.nix
+++ b/pkgs/development/python-modules/meshtastic/default.nix
@@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "meshtastic";
- version = "1.3.44";
+ version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "meshtastic";
repo = "Meshtastic-python";
rev = "refs/tags/${version}";
- hash = "sha256-3OINNcdyZyhofGJDvAVyDLv/ylomM6LP4cEBkmeYwn4=";
+ hash = "sha256-2m63OSVyhZgptBln+b65zX3609Liwq5V2a78UQThHyE=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/readme_renderer/default.nix b/pkgs/development/python-modules/readme_renderer/default.nix
index 5b271667e028..daa9a4d49092 100644
--- a/pkgs/development/python-modules/readme_renderer/default.nix
+++ b/pkgs/development/python-modules/readme_renderer/default.nix
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "readme-renderer";
- version = "37.2";
+ version = "37.3";
format = "setuptools";
disabled = pythonOlder "3.6";
@@ -20,7 +20,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "readme_renderer";
inherit version;
- sha256 = "sha256-6K0lKTyY94HbwsWjajCZKTkACfkC+Z4XmMdhqvBKeSM=";
+ sha256 = "sha256-zWUxht/HMFVlbwkPIn9csioEbX9xqEHfowX1XJpRMnM=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/types-pytz/default.nix b/pkgs/development/python-modules/types-pytz/default.nix
index 71fd7a098377..7ba9ad6d971a 100644
--- a/pkgs/development/python-modules/types-pytz/default.nix
+++ b/pkgs/development/python-modules/types-pytz/default.nix
@@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "types-pytz";
- version = "2022.5.0.0";
+ version = "2022.6.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-DBY7FdPlmObMcHSpnKnscrJdwbRGrMEzuCdmevC3sJo=";
+ sha256 = "sha256-0HgZY3TRJ36fmYTUk3PqBDzyxk1dXEkfvIbCWFV71G8=";
};
# Modules doesn't have tests