Files
nixpkgs/pkgs/development/python-modules/chess/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "chess";
version = "1.11.2";
pyproject = true;
disabled = pythonOlder "3.7";
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 ];
};
}