lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #199631 from kira-bruneau/python3Packages.pytest-datadir

authored by

Martin Weinelt and committed by
GitHub
a0eb4f78 3674d6a7

+13 -14
+13 -14
pkgs/development/python-modules/pytest-datadir/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub 2 - , setuptools-scm, pytest 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , setuptools-scm 5 + , pytestCheckHook 3 6 }: 4 7 5 8 buildPythonPackage rec { 6 9 pname = "pytest-datadir"; 7 - version = "1.3.1"; 10 + version = "1.4.1"; 8 11 format = "pyproject"; 9 12 10 13 src = fetchFromGitHub { 11 14 owner = "gabrielcnr"; 12 - repo = pname; 13 - rev = version; 14 - sha256 = "0kwgp6sqnqnmww5r0dkmyfpi0lmw0iwxz3fnwn2fs8w6bvixzznf"; 15 + repo = "pytest-datadir"; 16 + rev = "refs/tags/${version}"; 17 + sha256 = "sha256-HyJ0rU1nHqRv8SHFS8m3GZ5409+JZIkoDgIVjy4ol54="; 15 18 }; 16 19 20 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 17 21 nativeBuildInputs = [ setuptools-scm ]; 18 - 19 - preBuild = '' 20 - export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" 21 - ''; 22 - 23 - checkInputs = [ pytest ]; 24 - checkPhase = "pytest"; 22 + checkInputs = [ pytestCheckHook ]; 23 + pythonImportsCheck = [ "pytest_datadir" ]; 25 24 26 25 meta = with lib; { 26 + description = "Pytest plugin for manipulating test data directories and files"; 27 27 homepage = "https://github.com/gabrielcnr/pytest-datadir"; 28 - description = "pytest plugin for manipulating test data directories and files"; 29 28 license = licenses.mit; 30 29 maintainers = with maintainers; [ kira-bruneau ]; 31 30 };