1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 flit-core, 5 lib, 6 pytest, 7 pytestCheckHook, 8 pythonAtLeast, 9}: 10 11buildPythonPackage rec { 12 pname = "virtual-glob"; 13 version = "0.2.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "chrisjsewell"; 18 repo = "virtual-glob"; 19 tag = "v${version}"; 20 hash = "sha256-ocCa8m7mPPvzOZHPrraSEdSJZwRJoYO/Q7nyDbhIFu8="; 21 }; 22 23 build-system = [ 24 flit-core 25 ]; 26 27 optional-dependencies = { 28 testing = [ 29 pytest 30 ]; 31 }; 32 33 pythonImportsCheck = [ 34 "virtual_glob" 35 ]; 36 37 disabledTests = lib.optionals (pythonAtLeast "3.13") [ 38 "test_baseline_pathlib" 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 meta = { 44 description = "Globbing of virtual file systems"; 45 homepage = "https://pypi.org/project/virtual_glob/"; 46 maintainers = with lib.maintainers; [ PopeRigby ]; 47 license = lib.licenses.mit; 48 }; 49}