pythonPackages.pytest-datadir: init at 1.3.1

This commit is contained in:
MetaDark 2020-05-27 19:21:14 -04:00 committed by Jon
parent db2ce6413e
commit f3ee91d47e
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ stdenv, 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 stdenv.lib; {
homepage = "https://github.com/gabrielcnr/pytest-datadir";
description = "pytest plugin for manipulating test data directories and files";
license = licenses.mit;
maintainers = with maintainers; [ metadark ];
};
}

View File

@ -2484,6 +2484,8 @@ in {
pytest-cram = callPackage ../development/python-modules/pytest-cram { };
pytest-datadir = callPackage ../development/python-modules/pytest-datadir { };
pytest-datafiles = callPackage ../development/python-modules/pytest-datafiles { };
pytest-dependency = callPackage ../development/python-modules/pytest-dependency { };