Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / lazr / config.nix
blobbc369705e26552bcc426e8b5cfb232dfd232fef3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools
5 , lazr-delegates
6 , zope_interface
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "lazr-config";
12   version = "3.0";
13   pyproject = true;
15   src = fetchPypi {
16     pname = "lazr.config";
17     inherit version;
18     hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   propagatedBuildInputs = [
26     lazr-delegates
27     zope_interface
28   ];
30   pythonImportsCheck = [
31     "lazr.config"
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   # change the directory to avoid a namespace-related problem
39   # ModuleNotFoundError: No module named 'lazr.delegates'
40   preCheck = ''
41     cd $out
42   '';
44   pythonNamespaces = [
45     "lazr"
46   ];
48   meta = with lib; {
49     description = "Create configuration schemas, and process and validate configurations";
50     homepage = "https://launchpad.net/lazr.config";
51     changelog = "https://git.launchpad.net/lazr.config/tree/NEWS.rst?h=${version}";
52     license = licenses.lgpl3Only;
53   };