From e9d1d734494dfa2dddaac86275986c091c54c59f Mon Sep 17 00:00:00 2001 From: siddharthdhakane Date: Mon, 22 Jan 2024 19:29:38 +0530 Subject: [PATCH 1/2] maintainers: add siddharthdhakane --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8d1584235d84..cb9dbf64f233 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17125,6 +17125,12 @@ github = "shymega"; githubId = 1334592; }; + siddharthdhakane = { + email = "siddharthdhakane@gmail.com"; + github = "siddharthdhakane"; + githubId = 28101092; + name = "Siddharth Dhakane"; + }; siddharthist = { email = "langston.barrett@gmail.com"; github = "langston-barrett"; From 7c95720fd6c72cee07f06f779ace83670a97273e Mon Sep 17 00:00:00 2001 From: siddharthdhakane Date: Sun, 21 Jan 2024 20:46:08 +0530 Subject: [PATCH 2/2] python311Packages.nameko: init at 2.4.1 --- .../python-modules/nameko/default.nix | 71 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/development/python-modules/nameko/default.nix diff --git a/pkgs/development/python-modules/nameko/default.nix b/pkgs/development/python-modules/nameko/default.nix new file mode 100644 index 000000000000..aec20b0f43e7 --- /dev/null +++ b/pkgs/development/python-modules/nameko/default.nix @@ -0,0 +1,71 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder + +# install_requires +, dnspython +, eventlet +, kombu +, mock +, packaging +, path +, pyyaml +, requests +, setuptools +, six +, werkzeug +, wrapt +}: + +buildPythonPackage rec { + pname = "nameko"; + version = "2.14.1"; + pyproject = true; + + disabled = pythonOlder "3.9"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-J1NXi7Tca5KAGuozTSkwuX37dEhucF7daRmDBqlGjIg="; + }; + + postPatch = '' + substituteInPlace setup.py --replace "path.py" "path" + ''; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + dnspython + eventlet + kombu + mock + packaging + path + pyyaml + requests + setuptools + six + werkzeug + wrapt + ]; + + # tests depend on RabbitMQ being installed - https://nameko.readthedocs.io/en/stable/contributing.html#running-the-tests + # and most of the tests are network based + doCheck = false; + + pythonImportsCheck = [ + "nameko" + ]; + + meta = with lib; { + description = "A microservices framework that lets service developers concentrate on application logic and encourages testability"; + homepage = "https://www.nameko.io/"; + changelog = "https://github.com/nameko/nameko/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ siddharthdhakane ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb15676b1260..4fe6cce12629 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8152,6 +8152,8 @@ self: super: with self; { name-that-hash = callPackage ../development/python-modules/name-that-hash { }; + nameko = callPackage ../development/python-modules/nameko { }; + nampa = callPackage ../development/python-modules/nampa { }; nanoid = callPackage ../development/python-modules/nanoid { };