nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pdm-backend,
6 acres,
7 click,
8 pyyaml,
9}:
10
11buildPythonPackage rec {
12 pname = "bidsschematools";
13 version = "1.2.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "bids-standard";
18 repo = "bids-specification";
19 tag = "schema-${version}";
20 hash = "sha256-BK31NSq4WiQiM/GLxaL8bmce25RRS6ZJvOW7PhS6ByQ=";
21 };
22
23 sourceRoot = "${src.name}/tools/schemacode";
24
25 build-system = [
26 pdm-backend
27 ];
28
29 dependencies = [
30 acres
31 click
32 pyyaml
33 ];
34
35 pythonImportsCheck = [
36 "bidsschematools"
37 ];
38
39 meta = {
40 description = "Python tools for working with the BIDS schema";
41 homepage = "https://github.com/bids-standard/bids-specification/tree/master/tools/schemacode";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ wegank ];
44 };
45}