Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 54 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, lazr-delegates 6, zope_interface 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "lazr-config"; 12 version = "3.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 pname = "lazr.config"; 17 inherit version; 18 hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 ]; 24 25 propagatedBuildInputs = [ 26 lazr-delegates 27 zope_interface 28 ]; 29 30 pythonImportsCheck = [ 31 "lazr.config" 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 # change the directory to avoid a namespace-related problem 39 # ModuleNotFoundError: No module named 'lazr.delegates' 40 preCheck = '' 41 cd $out 42 ''; 43 44 pythonNamespaces = [ 45 "lazr" 46 ]; 47 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 }; 54}