Files
nixpkgs/pkgs/development/python-modules/geniushub-client/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

41 lines
1001 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "geniushub-client";
version = "0.7.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "manzanotti";
repo = "geniushub-client";
tag = "v${version}";
hash = "sha256-Gq2scYos7E8me1a4x7NanHRq2eYWuU2uSUwM+O1TPb8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'VERSION = os.environ["GITHUB_REF_NAME"]' "" \
--replace "version=VERSION," 'version="${version}",'
'';
propagatedBuildInputs = [ aiohttp ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "geniushubclient" ];
meta = {
description = "Module to interact with Genius Hub systems";
homepage = "https://github.com/manzanotti/geniushub-client";
changelog = "https://github.com/manzanotti/geniushub-client/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}