at master 913 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pythonOlder, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "chess"; 12 version = "1.11.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "niklasf"; 19 repo = "python-${pname}"; 20 tag = "v${version}"; 21 hash = "sha256-8LOp4HQI9UOdaj4/jwd79ftdnaO4HtzMVf1cwcYFCiA="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 pythonImportsCheck = [ "chess" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 enabledTestPaths = [ "test.py" ]; 31 32 meta = with lib; { 33 description = "Chess library with move generation, move validation, and support for common formats"; 34 homepage = "https://github.com/niklasf/python-chess"; 35 changelog = "https://github.com/niklasf/python-chess/blob/${src.tag}/CHANGELOG.rst"; 36 license = licenses.gpl3Plus; 37 maintainers = with maintainers; [ smancill ]; 38 }; 39}