depot/third_party/nixpkgs/pkgs/development/python-modules/testpath/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

32 lines
640 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "testpath";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "05z4s4d5i1ja16hiv4jhqv63fvg1a4vw77s0ay1sw11hrl5pmkqs";
};
checkInputs = [
pytestCheckHook
];
preCheck = lib.optionalString stdenv.isDarwin ''
# Work around https://github.com/jupyter/testpath/issues/24
export TMPDIR="/tmp"
'';
meta = with lib; {
description = "Test utilities for code working with files and commands";
license = licenses.mit;
homepage = "https://github.com/jupyter/testpath";
};
}