python3Packages.pytest-resource-path: init at 1.3.0

This commit is contained in:
Martin Weinelt
2021-08-05 12:44:50 +02:00
parent bde91debf3
commit 1b01e363b6
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, colorama
, pytest-runner
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-resource-path";
version = "1.3.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "yukihiko-shinoda";
repo = pname;
rev = "v${version}";
sha256 = "1siv3pk4fsabz254fdzr7c0pxy124habnbw4ym66pfk883fr96g2";
};
nativeBuildInputs = [
pytest-runner
];
propagatedBuildInputs = [
colorama
pytest
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_resource_path"
];
meta = with lib; {
description = "Pytest plugin to provide path for uniform access to test resources";
homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}