depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-datadir/default.nix
Default email 5a8b500490 Project import generated by Copybara.
GitOrigin-RevId: 1ca6b0a0cc38dbba0441202535c92841dd39d1ae
2021-06-04 10:07:49 +01:00

32 lines
774 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, setuptools-scm, pytest, cmake
}:
buildPythonPackage rec {
pname = "pytest-datadir";
version = "1.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "gabrielcnr";
repo = pname;
rev = version;
sha256 = "0kwgp6sqnqnmww5r0dkmyfpi0lmw0iwxz3fnwn2fs8w6bvixzznf";
};
nativeBuildInputs = [ setuptools-scm ];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
'';
checkInputs = [ pytest ];
checkPhase = "pytest";
meta = with lib; {
homepage = "https://github.com/gabrielcnr/pytest-datadir";
description = "pytest plugin for manipulating test data directories and files";
license = licenses.mit;
maintainers = with maintainers; [ kira-bruneau ];
};
}