Files
nixpkgs/pkgs/development/python-modules/srctools/default.nix
2025-09-07 10:17:04 +10:00

55 lines
919 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
meson,
meson-python,
cython,
attrs,
useful-types,
pytestCheckHook,
pillow,
pytest-regressions,
dirty-equals,
}:
let
pname = "srctools";
version = "2.6.1";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-EPdK8IALfcPhfzHiAR2FC821Z0Igkik9+mpky3eIsoM=";
};
build-system = [
meson
meson-python
cython
];
dependencies = [
attrs
useful-types
];
nativeCheckInputs = [
pytestCheckHook
pillow
pytest-regressions
dirty-equals
];
pythonImportsCheck = [ "srctools" ];
meta = {
description = "Modules for working with Valve's Source Engine file formats";
homepage = "https://github.com/TeamSpen210/srctools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ different-name ];
};
}