nixpkgs-suyu/pkgs/development/python-modules/flufl/lock.nix

30 lines
877 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
, atpublic, psutil, pytest-cov, sybil
2021-04-17 02:58:02 +02:00
}:
buildPythonPackage rec {
pname = "flufl.lock";
2021-10-09 18:50:03 +02:00
version = "6.0";
src = fetchPypi {
inherit pname version;
2021-10-09 18:50:03 +02:00
sha256 = "sha256-/HSO5gnshktIOO9knb0RcPp53rDCE8L9URUb7mp/wkI=";
};
2021-04-17 02:58:02 +02:00
propagatedBuildInputs = [ atpublic psutil ];
checkInputs = [ pytestCheckHook pytest-cov 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.
pytestFlagsArray = [ "--no-cov" ];
meta = with lib; {
homepage = "https://flufllock.readthedocs.io/";
description = "NFS-safe file locking with timeouts for POSIX and Windows";
maintainers = with maintainers; [ qyliss ];
license = licenses.asl20;
platforms = platforms.all;
};
}