46 lines
805 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools,
click,
pyyaml,
jsonschema,
}:
buildPythonPackage rec {
pname = "bidsschematools";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "bidsschematools";
inherit version;
hash = "sha256-dEPJircy7RDRa1Q7lgUhgfj2ewVo1rsUu1A1mnSi6vw=";
};
build-system = [
setuptools
];
dependencies = [
click
pyyaml
jsonschema
];
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 ];
};
}