pkgs/development/python-modules: stdenv.lib -> lib

This commit is contained in:
Pavol Rusnak
2021-01-24 01:29:22 +01:00
parent 2f34b4b883
commit a4bbfba80d
211 changed files with 525 additions and 546 deletions

View File

@@ -2,10 +2,6 @@
, contextlib2, osxfuse
}:
let
inherit (stdenv.lib) optionals optionalString;
in
buildPythonPackage rec {
pname = "llfuse";
version = "1.3.8";
@@ -24,16 +20,18 @@ buildPythonPackage rec {
];
nativeBuildInputs = [ pkg-config ];
buildInputs =
optionals stdenv.isLinux [ fuse ]
++ optionals stdenv.isDarwin [ osxfuse ];
lib.optionals stdenv.isLinux [ fuse ]
++ lib.optionals stdenv.isDarwin [ osxfuse ];
checkInputs = [ pytest which ] ++
optionals stdenv.isLinux [ attr ];
lib.optionals stdenv.isLinux [ attr ];
propagatedBuildInputs = [ contextlib2 ];
checkPhase = ''
py.test -k "not test_listdir" ${optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
py.test -k "not test_listdir" ${lib.optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
'';
meta = with lib; {