Files
nixpkgs/pkgs/development/python-modules/nameko/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

70 lines
1.3 KiB
Nix

{
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-fail "path.py" "path"
'';
build-system = [ setuptools ];
dependencies = [
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 = {
description = "Microservices framework that lets service developers concentrate on application logic and encourages testability";
mainProgram = "nameko";
homepage = "https://www.nameko.io/";
changelog = "https://github.com/nameko/nameko/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ siddharthdhakane ];
};
}