pkgs: Add msbt tools

This commit is contained in:
traxys 2025-07-21 12:00:41 +02:00
parent 2da91ef71d
commit 129b9c193e
2 changed files with 38 additions and 0 deletions

View file

@ -21,6 +21,8 @@
sarc = pkgs.callPackage ./sarc.nix { inherit rstb; };
rstb = pkgs.callPackage ./rstb.nix { inherit oead; };
oead = pkgs.callPackage ./oead.nix { };
msbt = pkgs.python3.pkgs.callPackage ./msbt.nix { };
msbt-python = pkgs.python3.withPackages (_: [ msbt ]);
};
};
}

36
pkgs/msbt.nix Normal file
View file

@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "pymsbt";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "p1gyy";
repo = "pymsbt";
rev = "v${version}";
hash = "sha256-LP+9SKbvDnjd5jxZYUKIqyJUp96Ee71ndkoQ6oceoJg=";
};
build-system = [
setuptools
wheel
];
pythonImportsCheck = [
"pymsbt"
];
meta = {
description = "A python library for parsing and editing .msbt files";
homepage = "https://github.com/p1gyy/pymsbt";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ];
};
}