1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 flit-core, 7 unittestCheckHook, 8 9 # for passthru.tests 10 awsebcli, 11 black, 12 hatchling, 13 yamllint, 14}: 15 16buildPythonPackage rec { 17 pname = "pathspec"; 18 version = "0.12.1"; 19 format = "pyproject"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-pILVFQOhqzOxxnpsOBOiaVPb3HHDHayu+ag4xOKfVxI="; 24 }; 25 26 nativeBuildInputs = [ flit-core ]; 27 28 pythonImportsCheck = [ "pathspec" ]; 29 30 checkInputs = [ unittestCheckHook ]; 31 32 passthru.tests = { 33 inherit 34 awsebcli 35 black 36 hatchling 37 yamllint 38 ; 39 }; 40 41 meta = { 42 description = "Utility library for gitignore-style pattern matching of file paths"; 43 homepage = "https://github.com/cpburnz/python-path-specification"; 44 changelog = "https://github.com/cpburnz/python-pathspec/blob/v${version}/CHANGES.rst"; 45 license = lib.licenses.mpl20; 46 maintainers = with lib.maintainers; [ copumpkin ]; 47 }; 48}