Files
nixpkgs/pkgs/development/python-modules/flipr-api/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

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
requests-mock,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
requests,
}:
buildPythonPackage rec {
pname = "flipr-api";
version = "1.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "cnico";
repo = "flipr-api";
tag = version;
hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k=";
};
build-system = [ poetry-core ];
dependencies = [
python-dateutil
requests
];
nativeCheckInputs = [
requests-mock
pytest-asyncio
pytestCheckHook
];
env = {
# used in test_session
FLIPR_USERNAME = "foobar";
FLIPR_PASSWORD = "secret";
};
pythonImportsCheck = [ "flipr_api" ];
meta = {
description = "Python client for Flipr API";
mainProgram = "flipr-api";
homepage = "https://github.com/cnico/flipr-api";
changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}