2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
lazr-delegates,
|
|
|
|
zope-interface,
|
|
|
|
pytestCheckHook,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "lazr-config";
|
|
|
|
version = "3.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "lazr.config";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lazr-delegates
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "lazr.config" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# change the directory to avoid a namespace-related problem
|
|
|
|
# ModuleNotFoundError: No module named 'lazr.delegates'
|
|
|
|
preCheck = ''
|
|
|
|
cd $out
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonNamespaces = [ "lazr" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|