summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/srctools/default.nix
blob: 981c6ef48f88364e81b4844d517edd378b4384c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  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;
  pyproject = true;

  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 ];
  };
}