Something went wrong. Try again.
lol
Something went wrong. Try again.
863 B · 36 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637{ lib, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook,}:
buildPythonPackage rec { pname = "chess"; version = "1.11.2"; pyproject = true;
src = fetchFromGitHub { owner = "niklasf"; repo = "python-${pname}"; tag = "v${version}"; hash = "sha256-8LOp4HQI9UOdaj4/jwd79ftdnaO4HtzMVf1cwcYFCiA="; };
build-system = [ setuptools ];
pythonImportsCheck = [ "chess" ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test.py" ];
meta = { description = "Chess library with move generation, move validation, and support for common formats"; homepage = "https://github.com/niklasf/python-chess"; changelog = "https://github.com/niklasf/python-chess/blob/${src.tag}/CHANGELOG.rst"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ smancill ]; };}