Files
nixpkgs/pkgs/development/python-modules/flufl/lock.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

54 lines
1.1 KiB
Nix

{
lib,
atpublic,
buildPythonPackage,
fetchPypi,
hatchling,
psutil,
pytest-cov-stub,
pytestCheckHook,
sybil,
}:
buildPythonPackage rec {
pname = "flufl-lock";
version = "8.2.0";
pyproject = true;
src = fetchPypi {
pname = "flufl_lock";
inherit version;
hash = "sha256-FbMzw1+rGjayI4QAVyWK60zXnw+6+CwUTyPN9s8U1eM=";
};
build-system = [ hatchling ];
dependencies = [
atpublic
psutil
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
sybil
];
# disable code coverage checks for all OS. Upstream does not enforce these
# checks on Darwin, and code coverage cannot be improved downstream nor is it
# relevant to the user.
pytestFlags = [ "--no-cov" ];
pythonImportsCheck = [ "flufl.lock" ];
pythonNamespaces = [ "flufl" ];
meta = {
description = "NFS-safe file locking with timeouts for POSIX and Windows";
homepage = "https://flufllock.readthedocs.io/";
changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ qyliss ];
};
}