default.nix (1255B)
1 { 2 lib, 3 fetchFromGitHub, 4 fetchpatch, 5 python3Packages, 6 pytest-skip-markers, 7 }: 8 9 python3Packages.buildPythonPackage (finalAttrs: { 10 pname = "pytest-shell-utilities"; 11 version = "1.9.7"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "saltstack"; 16 repo = "pytest-shell-utilities"; 17 tag = finalAttrs.version; 18 hash = "sha256-1xHTaYurVusWXVjVwiiUdeC1SN02U3E6p1hOYp78Msw="; 19 }; 20 21 patches = [ 22 # Support pytest 9 23 (fetchpatch { 24 url = "https://github.com/saltstack/pytest-shell-utilities/commit/b6f26e62a20fc8c42635a2b868e8915cc2a0b21d.patch"; 25 hash = "sha256-QKk3EnJRMiuaZRHi/qkpJBsOBOuHROMSXb9fN36ZNzo="; 26 }) 27 ]; 28 29 SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version; 30 31 build-system = with python3Packages; [ 32 setuptools-scm 33 setuptools-declarative-requirements 34 ]; 35 36 dependencies = with python3Packages; [ 37 psutil 38 pytest-skip-markers 39 pytest-helpers-namespace 40 ]; 41 42 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 43 44 __darwinAllowLocalNetworking = true; 45 46 meta = { 47 description = "Pytest Shell Utilities"; 48 homepage = "https://github.com/saltstack/pytest-shell-utilities"; 49 license = lib.licenses.asl20; 50 maintainers = [ lib.maintainers.sikmir ]; 51 }; 52 })
