1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytest-cov-stub, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "result"; 14 version = "0.17.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "rustedpy"; 21 repo = "result"; 22 rev = "v${version}"; 23 hash = "sha256-o+7qKxGQCeMUnsmEReggvf+XwQWFHRCYArYk3DxCa50="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytest-cov-stub 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "result" ]; 35 36 meta = with lib; { 37 description = "A Rust-like result type for Python"; 38 homepage = "https://github.com/rustedpy/result"; 39 changelog = "https://github.com/rustedpy/result/blob/v${version}/CHANGELOG.md"; 40 license = licenses.mit; 41 maintainers = with lib.maintainers; [ emattiza ]; 42 }; 43}