forked from mirrors/nixpkgs
1473a2bf1a
The code coverage requirement of 100% was too stringent on Darwin. Since there is no way that we can address a lack of code coverage downstream we remove this check.
30 lines
878 B
Nix
30 lines
878 B
Nix
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
|
|
, atpublic, psutil, pytestcov, sybil
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flufl.lock";
|
|
version = "5.0.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1bnapkg99r6mixn3kh314bqcfk8q54y0cvhjpj87j7dhjpsakfpz";
|
|
};
|
|
|
|
propagatedBuildInputs = [ atpublic psutil ];
|
|
checkInputs = [ pytestCheckHook pytestcov 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;
|
|
};
|
|
}
|