nixpkgs/pkgs/development/python-modules/testpath/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
640 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
2021-06-19 01:19:05 +01:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "testpath";
version = "0.5.0";
src = fetchPypi {
2021-06-19 00:46:01 +01:00
inherit pname version;
sha256 = "05z4s4d5i1ja16hiv4jhqv63fvg1a4vw77s0ay1sw11hrl5pmkqs";
};
2021-06-19 01:19:05 +01:00
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";
};
}