Files
nixpkgs/pkgs/development/python-modules/keyrings-cryptfile/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

56 lines
1.3 KiB
Nix

{
lib,
argon2-cffi,
buildPythonPackage,
fetchFromGitHub,
setuptools,
keyring,
pycryptodome,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "keyrings-cryptfile";
version = "1.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "frispete";
repo = "keyrings.cryptfile";
tag = "v${version}";
hash = "sha256-cDXx0s3o8hNqgzX4oNkjGhNcaUX5vi1uN2d9sdbiZwk=";
};
build-system = [ setuptools ];
dependencies = [
argon2-cffi
keyring
pycryptodome
];
pythonImportsCheck = [ "keyrings.cryptfile" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
disabledTests = [
# correct raise `ValueError`s which pytest fails to catch for some reason:
"test_empty_username"
# TestEncryptedFileKeyring::test_file raises 'ValueError: Incorrect Password' for some reason, maybe mock related:
"TestEncryptedFileKeyring"
];
meta = {
description = "Encrypted file keyring backend";
mainProgram = "cryptfile-convert";
homepage = "https://github.com/frispete/keyrings.cryptfile";
changelog = "https://github.com/frispete/keyrings.cryptfile/blob/v${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.bbjubjub ];
};
}