{ lib, buildPythonPackage, fetchFromGitHub, pdm-backend, acres, click, pyyaml, }: buildPythonPackage rec { pname = "bidsschematools"; version = "1.2.1"; pyproject = true; src = fetchFromGitHub { owner = "bids-standard"; repo = "bids-specification"; tag = "schema-${version}"; hash = "sha256-BK31NSq4WiQiM/GLxaL8bmce25RRS6ZJvOW7PhS6ByQ="; }; sourceRoot = "${src.name}/tools/schemacode"; build-system = [ pdm-backend ]; dependencies = [ acres click pyyaml ]; pythonImportsCheck = [ "bidsschematools" ]; meta = { description = "Python tools for working with the BIDS schema"; homepage = "https://github.com/bids-standard/bids-specification/tree/master/tools/schemacode"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ wegank ]; }; }