depot/third_party/nixpkgs/pkgs/development/python-modules/chess/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

39 lines
924 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "chess";
version = "1.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "niklasf";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
hash = "sha256-+YNEm1QppXeeIjOKfCSQoQmuSzBsW4ws0ej/whjTAPg=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "chess" ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
meta = with lib; {
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/v${version}/CHANGELOG.rst";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ smancill ];
};
}