1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, flit-core 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "testpath"; 11 version = "0.6.0"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-LxuX5kQsAmgevgG9hPUxAop8rqGvOCUAD1I0XDAoXg8="; 17 }; 18 19 nativeBuildInputs = [ 20 flit-core 21 ]; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 preCheck = lib.optionalString stdenv.isDarwin '' 28 # Work around https://github.com/jupyter/testpath/issues/24 29 export TMPDIR="/tmp" 30 ''; 31 32 meta = with lib; { 33 description = "Test utilities for code working with files and commands"; 34 license = licenses.mit; 35 homepage = "https://github.com/jupyter/testpath"; 36 }; 37 38}