Files
nixpkgs/pkgs/development/python-modules/lazr-config/default.nix
2025-01-11 16:56:04 +09:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchgit,
setuptools,
lazr-delegates,
zope-interface,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "lazr-config";
version = "3.1";
pyproject = true;
src = fetchgit {
url = "https://git.launchpad.net/lazr.config";
rev = "3c659114e8e947fbd46954336f5577351d786de9";
hash = "sha256-eYJY4JRoqTMG4j1jyiYrI8xEKdJ+wQYVVU/6OqVIodk=";
};
build-system = [ setuptools ];
dependencies = [
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 = {
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 = lib.licenses.lgpl3Only;
};
}