Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pydantic 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "camel-converter"; 12 version = "3.0.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "sanders41"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-SUuSaQU6o2OtjDNrDcO3nS0EZH2ammEkP7AEp4H5ysI="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace "--cov=camel_converter --cov-report term-missing" "" 27 ''; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 passthru.optional-dependencies = { 34 pydantic = [ 35 pydantic 36 ]; 37 }; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ] ++ passthru.optional-dependencies.pydantic; 42 43 pythonImportsCheck = [ 44 "camel_converter" 45 ]; 46 47 meta = with lib; { 48 description = "Client for the Meilisearch API"; 49 homepage = "https://github.com/sanders41/camel-converter"; 50 changelog = "https://github.com/sanders41/camel-converter/releases/tag/v${version}"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}