emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / geniushub-client / default.nix
blob798a3c9e9abf64f1f4c8a99efedf12d269b8fb9c
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "geniushub-client";
12   version = "0.7.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "manzanotti";
19     repo = pname;
20     tag = "v${version}";
21     hash = "sha256-Gq2scYos7E8me1a4x7NanHRq2eYWuU2uSUwM+O1TPb8=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace 'VERSION = os.environ["GITHUB_REF_NAME"]' "" \
27       --replace "version=VERSION," 'version="${version}",'
28   '';
30   propagatedBuildInputs = [ aiohttp ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   pythonImportsCheck = [ "geniushubclient" ];
36   meta = with lib; {
37     description = "Module to interact with Genius Hub systems";
38     homepage = "https://github.com/manzanotti/geniushub-client";
39     changelog = "https://github.com/manzanotti/geniushub-client/releases/tag/v${version}";
40     license = licenses.mit;
41     maintainers = with maintainers; [ dotlambda ];
42   };