depot/third_party/nixpkgs/pkgs/development/python-modules/chess/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
}:
buildPythonPackage rec {
pname = "chess";
version = "1.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "niklasf";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
hash = "sha256-jfPg1W9Qp0DlAbMXaFqZ6Ri2zMOW6EKUHwi7Azn/yl0=";
};
pythonImportsCheck = [ "chess" ];
checkPhase = ''
${python.interpreter} ./test.py -v
'';
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 ];
};
}