Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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;
};
}