Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 868 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 colorama, 7 pytest, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-resource-path"; 14 version = "1.4.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "yukihiko-shinoda"; 19 repo = "pytest-resource-path"; 20 tag = "v${version}"; 21 hash = "sha256-f0jN6V6tQRbr/DHOKKTrFCb1EBUUxZAQRckMy2iiVqI="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 buildInputs = [ pytest ]; 27 28 dependencies = [ colorama ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "pytest_resource_path" ]; 33 34 meta = { 35 description = "Pytest plugin to provide path for uniform access to test resources"; 36 homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ fab ]; 39 }; 40}