about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lazr/config.nix
blob: 79e60a5f98804ad2930490c54c9a251fbd885f5d (plain) (blame)
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
, setuptools
, lazr-delegates
, zope-interface
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "lazr-config";
  version = "3.0";
  pyproject = true;

  src = fetchPypi {
    pname = "lazr.config";
    inherit version;
    hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    lazr-delegates
    zope-interface
  ];

  pythonImportsCheck = [
    "lazr.config"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  # change the directory to avoid a namespace-related problem
  # ModuleNotFoundError: No module named 'lazr.delegates'
  preCheck = ''
    cd $out
  '';

  pythonNamespaces = [
    "lazr"
  ];

  meta = with lib; {
    description = "Create configuration schemas, and process and validate configurations";
    homepage = "https://launchpad.net/lazr.config";
    changelog = "https://git.launchpad.net/lazr.config/tree/NEWS.rst?h=${version}";
    license = licenses.lgpl3Only;
  };
}