summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/kdl-py/default.nix
blob: 783a382dde4a740f9d90ce905f5ab445355fc3d2 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "kdl-py";
  version = "1.2.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Y/P0bGJ33trc5E3PyUZyv25r8zMLkBIuATTCKFfimXM=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "kdl" ];

  checkPhase = ''
    runHook preCheck

    python tests/run.py

    runHook postCheck
  '';

  meta = {
    description = "Parser for the KDL language";
    homepage = "https://github.com/tabatkins/kdlpy";
    license = lib.licenses.mit;
    maintainers = [ ];
    mainProgram = "kdlreformat";
  };
}