1{ 2 lib, 3 buildPythonPackage, 4 fetchgit, 5 setuptools, 6 lazr-delegates, 7 zope-interface, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "lazr-config"; 13 version = "3.1"; 14 pyproject = true; 15 16 src = fetchgit { 17 url = "https://git.launchpad.net/lazr.config"; 18 rev = "3c659114e8e947fbd46954336f5577351d786de9"; 19 hash = "sha256-eYJY4JRoqTMG4j1jyiYrI8xEKdJ+wQYVVU/6OqVIodk="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 lazr-delegates 26 zope-interface 27 ]; 28 29 pythonImportsCheck = [ "lazr.config" ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 # change the directory to avoid a namespace-related problem 34 # ModuleNotFoundError: No module named 'lazr.delegates' 35 preCheck = '' 36 cd $out 37 ''; 38 39 pythonNamespaces = [ "lazr" ]; 40 41 meta = { 42 description = "Create configuration schemas, and process and validate configurations"; 43 homepage = "https://launchpad.net/lazr.config"; 44 changelog = "https://git.launchpad.net/lazr.config/tree/NEWS.rst?h=${version}"; 45 license = lib.licenses.lgpl3Only; 46 }; 47}